| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
Locale
Locale.Language
Locale.Language.abstract

# Method Locale.Language.abstract()->date()

Method date

  `string date(int timestamp, string|void mode)`

Description

  Returns the date for posix time timestamp as a textual string.

Parameter `mode`

  Determines what kind of textual string should be produced.

  `"time"` | I.e. "06:36"
  `"date"` | I.e. "January the 17th in the year of 2002"
  `"full"` | I.e. "06:37, January the 17th, 2002"

Example

      > Locale.Language.eng()->date(time());
       Result: "today, 06:36"