Class Index | File Index

Classes


Class DateFormatter

DateFormatter
Defined in: Hermes.js.

Class Summary
Constructor Attributes Constructor Name and Description
<private>  
DateFormatter(sFormat)
DateFormatter is the class to format dates
Field Summary
Field Attributes Field Name and Description
<static>  
DateFormatter.DEFAULT
Method Summary
Method Attributes Method Name and Description
 
addZero(nNumber)
addZero is a method that adds a Zero to all the number that are less than 10
 
formatDate(oDate)
formatDate returns the string with the formatted date.
 
getTimeZoneOffset set the timezone and returns the difference
 
setDefaultFormat change the format to format the date
Class Detail
<private> DateFormatter(sFormat)
DateFormatter is the class to format dates
Parameters:
sFormat
Field Detail
<static> DateFormatter.DEFAULT
Method Detail
addZero(nNumber)
addZero is a method that adds a Zero to all the number that are less than 10
Parameters:
nNumber
Returns:
{String}

formatDate(oDate)
formatDate returns the string with the formatted date.
Parameters:
oDate

getTimeZoneOffset(oDate)
getTimeZoneOffset set the timezone and returns the difference
Parameters:
oDate
Returns:
{String}

setDefaultFormat(sFormat)
setDefaultFormat change the format to format the date
Parameters:
sFormat
Returns:
DateFormatter instance

©2011
Documentation generated by JsDoc Toolkit 2.4.0 on Sat Oct 08 2011 19:55:26 GMT+0200 (CEST)