Class Index | File Index

Classes


Class pv.Format.date


Extends pv.Format.
The format string is in the same format expected by the strftime function in C. The following conversion specifications are supported:

The following conversion specifications are currently unsupported for formatting:In addition, the following conversion specifications are currently unsupported for parsing:
Defined in: DateFormat.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
pv.Format.date(pattern)
Constructs a new date format with the specified string pattern.
Method Summary
Method Attributes Method Name and Description
 
format(date)
Converts a date to a string using the associated formatting pattern.
 
parse(s)
Parses a date from a string using the associated formatting pattern.
Class Detail
pv.Format.date(pattern)
Constructs a new date format with the specified string pattern.
Parameters:
{string} pattern
the format pattern.
See:
strftime documentation.
strptime documentation.
Method Detail
{string} format(date)
Converts a date to a string using the associated formatting pattern.
Parameters:
{Date} date
a date to format.
Returns:
{string} the formatted date as a string.

{Date} parse(s)
Parses a date from a string using the associated formatting pattern.
Parameters:
{string} s
the string to parse as a date.
Returns:
{Date} the parsed date.

Documentation generated by JsDoc Toolkit 2.3.2 on Fri May 28 2010 10:13:28 GMT-0700 (PDT)