Date

License

MIT-style license.

Author

Takashi Mizohata bea.nosp@m.tak@nydd.nosp@m..org

Copyright

2008 [nydd](http://code.nydd.org/).

Code & Documentation

[nydd jslib](http://code.nydd.org/).

Inspiration

Everything is worthwhile / if the soul isn’t small.

Summary
DateMIT-style license.
Constants
MonthNameEN(Array) Name in English for each month
Functions
getMonthNameUtility methods that connects an instance of Date Object and an Array of Name of month in any language.
getShortMonthNameShortcut for getMonthName with requiring length as 3.
getUTCMonthNameShortcut for getMonthName with requiring UTC time.
getUTCShortMonthNameShortcut for getMonthName with requiring length as 3 and UTC time.
getAmericanTimeString[FIX ME] Utility method that makes typical American way of writing time.
getUTCAmericanTimeString[FIX ME] Utility method that makes typical American way of writing time with UTC Time.

Constants

MonthNameEN

(Array) Name in English for each month

MonthNameEN[0]january
MonthNameEN[1]february
MonthNameEN[2]march
MonthNameEN[3]april
MonthNameEN[4]may
MonthNameEN[5]june
MonthNameEN[6]july
MonthNameEN[7]august
MonthNameEN[8]september
MonthNameEN[9]october
MonthNameEN[10]november
MonthNameEN[11]december

Functions

getMonthName

Date.getMonthName = function (obj,
arr,
length,
isUTC)

Utility methods that connects an instance of Date Object and an Array of Name of month in any language.  It only supports Georgian Calendar.

Type

static

Parameters

objinstance of Date Object
arr[Option] array contains name of Month.  Has to have 12 elements
length[Option] length of returned String.
isUTC[Option] use UTC value as time fetching method.

Retruns

(String) Literal expression of Month for given instance.

getShortMonthName

Date.getShortMonthName = function (obj,
arr)

Shortcut for getMonthName with requiring length as 3.

Type

static

Parameters

objinstance of Date Object
arr[Option] array contains name of Month.  Has to have 12 elements

Retruns

(String) 3 Characters Literal expression of Month for given instance.

getUTCMonthName

Date.getUTCMonthName = function (obj,
arr,
length)

Shortcut for getMonthName with requiring UTC time.

Type

static

Parameters

objinstance of Date Object
arr[Option] array contains name of Month.  Has to have 12 elements
length[Option] length of returned String.

Retruns

(String) Literal expression of Month for given instance by using UTC time.

getUTCShortMonthName

Date.getUTCShortMonthName = function (obj,
arr)

Shortcut for getMonthName with requiring length as 3 and UTC time.

Type

static

Parameters

objinstance of Date Object
arr[Option] array contains name of Month.  Has to have 12 elements

Retruns

(String) 3 Characters Literal expression of Month for given instance by using UTC time

getAmericanTimeString

Date.getAmericanTimeString = function (obj)

[FIX ME] Utility method that makes typical American way of writing time.

Type

static

Parameters

objinstance of Date Object

Requires

String.padding().  See String

Retruns

(String) HH:MM AP format(H for hours, M for minutes and AP for AM or PM)

getUTCAmericanTimeString

Date.getUTCAmericanTimeString = function (obj)

[FIX ME] Utility method that makes typical American way of writing time with UTC Time.

Type

static

Parameters

objinstance of Date Object

Retruns

(String) HH:MM AP format(H for hours, M for minutes and AP for AM or PM)

Date.getMonthName = function (obj,
arr,
length,
isUTC)
Utility methods that connects an instance of Date Object and an Array of Name of month in any language.
Date.getShortMonthName = function (obj,
arr)
Shortcut for getMonthName with requiring length as 3.
Date.getUTCMonthName = function (obj,
arr,
length)
Shortcut for getMonthName with requiring UTC time.
Date.getUTCShortMonthName = function (obj,
arr)
Shortcut for getMonthName with requiring length as 3 and UTC time.
Date.getAmericanTimeString = function (obj)
[FIX ME] Utility method that makes typical American way of writing time.
Date.getUTCAmericanTimeString = function (obj)
[FIX ME] Utility method that makes typical American way of writing time with UTC Time.
MIT-style license.
Close