Jel.Lang

Language Resources for the Jel library which allow it to be internationalised.

Summary
Language Resources for the Jel library which allow it to be internationalised.
Language resources for Jel.Date
an array of long day name string constants for the current language build.
an array of short day name string constants for the current language build.
an array of long month names string constants for the current language build.
an array of short month names string constants for the current language build.

Jel. Lang.Date

Language resources for Jel.Date

Summary
an array of long day name string constants for the current language build.
an array of short day name string constants for the current language build.
an array of long month names string constants for the current language build.
an array of short month names string constants for the current language build.

Properties

DAYS

an array of long day name string constants for the current language build. e.g. for English [“Sunday”, ..., “Saturday”].  These are also used by Jel.Date.format and Jel.Date.parse.

Example

Jel.Lang.Date.DAYS[4]; // Thursday
Jel.Lang.Date.DAYS[1]; // Monday

DAYS_SHORT

an array of short day name string constants for the current language build. e.g. for English [“Sun”, ..., “Sat”].  These are also used by Jel.Date.format and Jel.Date.parse.

Example

Jel.Lang.Date.DAYS_SHORT[4]; // Thu
Jel.Lang.Date.DAYS_SHORT[1]; // Mon

MONTHS

an array of long month names string constants for the current language build. e.g. for English [“January”, ..., “December”].  These are also used by Jel.Date.format and Jel.Date.parse.

Example

Jel.Lang.Date.MONTHS[4]; // May
Jel.Lang.Date.MONTHS[1]; // Februrary

MONTHS_SHORT

an array of short month names string constants for the current language build. e.g. for English [“Jan”, ..., “Dec”].  These are also used by Jel.Date.format and Jel.Date.parse.

Example

Jel.Lang.Date.MONTHS_SHORT[4]; // May
Jel.Lang.Date.MONTHS_SHORT[1]; // Feb
Utility Methods for manipulating JavaScript’s built-in Date class
Jel.Date.format = function(date,
format)
formats the given date as a string using the date format in format.
Jel.Date.parse = function(str,
format)
parses a date string into a JavaScript Date object assuming a specified date format.