Constructordojox.dtl.utils.date.DateFormat

dojo.require("dojox.dtl.utils.date");
defined in dojox/dtl/utils/date.js

Usage

function (/*String*/ format) (view source)
parametertypedescription
formatString 

Jump to PropertiesJump to FunctionsConstructorsBack to top

ConstructorB()
Swatch Internet time A day is 1,000 beats. All time is measured from GMT + 1
ConstructorD()
A textual representation of a day, three letters
ConstructorF()
A full textual representation of a month, such as January or March
ConstructorG()
24-hour format of an hour without leading zeros
ConstructorH()
24-hour format of an hour with leading zeros
ConstructorI()
Whether or not the date is in daylight saving time TODO: Can dojo.date do this?
ConstructorL()
Whether it's a leap year
ConstructorM()
A short textual representation of a month, three letters
ConstructorN()
Month abbreviation in Associated Press style. Proprietary extension.
ConstructorO()
Difference to Greenwich time (GMT) in hours
ConstructorP()
Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off if they're zero and the strings 'midnight' and 'noon' if appropriate.
ConstructorS()
English ordinal suffix for the day of the month, 2 characters
ConstructorT()
Timezone abbreviation
ConstructorU()
Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
ConstructorW()
ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)
ConstructorY()
A full numeric representation of a year, 4 digits
ConstructorZ()
Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.

Jump to PropertiesJump to ConstructorsFunctionsBack to top

Functiona()
Lowercase Ante meridiem and Post meridiem
Functionb()
Uppercase Ante meridiem and Post meridiem
Functionc()
ISO 8601 date (added in PHP 5)
Functiond()
Day of the month, 2 digits with leading zeros
Functione()
Timezone identifier (added in PHP 5.1.0)
Functionf()
Time, in 12-hour hours and minutes, with minutes left off if they're zero.
Functiong()
12-hour format of an hour without leading zeros
Functionh()
12-hour format of an hour with leading zeros
Functioni()
Minutes with leading zeros
Functionj()
Day of the month without leading zeros
Functionl()
A full textual representation of the day of the week
Functionm()
Numeric representation of a month, with leading zeros
Functionn()
Numeric representation of a month, without leading zeros
Functiono()
ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0) TODO: Figure out what this means
Functionr()
RFC 2822 formatted date
Functions()
Seconds, with leading zeros
Functiont()
Number of days in the given month
Functionw()
Numeric representation of the day of the week
Functiony()
A two digit representation of a year
Functionz()
The day of the year (starting from 0)

Jump to FunctionsJump to ConstructorsPropertiesBack to top