Date
└─SwatDate
public class SwatDate
extends Date
| Field Summary | |
|---|---|
| final mixed | 08 / 2002. |
| final mixed | July 2, 2002. |
| final mixed | Tuesday, July 2, 2002. |
| final mixed | Aug 5, 2002. |
| final mixed | Aug 5. |
| final mixed | July 2, 2002 10:09 AM. |
| final mixed | Tuesday, July 2, 2002 10:09 AM. |
| final mixed | Aug 5, 2002 10:09 AM. |
| final mixed | Aug 5, 10:09 AM. |
| final mixed | 07/02/02. |
| final mixed | 070202. |
| final mixed | August 2002. |
| final mixed | 10:09 AM. |
| final mixed | 2002. |
| final mixed | AST/ADT. |
| final mixed | Atlantic Standard Time or Atlantic Daylight Time, depending on inDaylightTime() for the date. |
| final mixed | AST or ADT, depending on inDaylightTime() for the date. |
| final mixed | Atlantic Daylight Time. |
| final mixed | ADT. |
| final mixed | America/Halifax. |
| final mixed | Atlantic Standard Time. |
| final mixed | AST. |
| Constructor Summary | |
|---|---|
SwatDate(mixed date, mixed format) |
|
| Method Summary | |
|---|---|
| void | Clears the time portion of the date object. |
| string | format(mixed format, integer tz_format) Formats this date given either a format string or a format id. |
| string | formatTZ(integer format) Formats the time zone part of this date. |
| static string | getFormatById(integer id) Gets a date format string by id. |
public final mixed DF_CC_MY = 13
08 / 2002
public final mixed DF_DATE = 3
July 2, 2002
public final mixed DF_DATE_LONG = 4
Tuesday, July 2, 2002
public final mixed DF_DATE_SHORT = 8
Aug 5, 2002
public final mixed DF_DATE_SHORT_NOYEAR = 9
Aug 5
public final mixed DF_DATE_TIME = 5
July 2, 2002 10:09 AM
public final mixed DF_DATE_TIME_LONG = 6
Tuesday, July 2, 2002 10:09 AM
public final mixed DF_DATE_TIME_SHORT = 10
Aug 5, 2002 10:09 AM
public final mixed DF_DATE_TIME_SHORT_NOYEAR = 11
Aug 5, 10:09 AM
public final mixed DF_MDY = 1
07/02/02
public final mixed DF_MDY_SHORT = 2
070202
public final mixed DF_MY = 12
August 2002
public final mixed DF_TIME = 7
10:09 AM
public final mixed DF_Y = 14
2002
public final mixed TZ_COMBINED = 6
AST/ADT
public final mixed TZ_CURRENT_LONG = 8
Atlantic Standard Time or Atlantic Daylight Time, depending on inDaylightTime() for the date.
public final mixed TZ_CURRENT_SHORT = 7
AST or ADT, depending on inDaylightTime() for the date.
public final mixed TZ_DST_LONG = 5
Atlantic Daylight Time
public final mixed TZ_DST_SHORT = 4
ADT
public final mixed TZ_ID = 1
America/Halifax
public final mixed TZ_LONG = 3
Atlantic Standard Time
public final mixed TZ_SHORT = 2
AST
public SwatDate(mixed date, mixed format)
public void clearTime()
Clears the time portion of the date object
public string format(mixed format, integer tz_format)
Formats this date given either a format string or a format id
format - either a format string or an integer format id.tz_format - optional time zone format id.public string formatTZ(integer format)
Formats the time zone part of this date
format - an integer time zone format id.public static string getFormatById(integer id)
Gets a date format string by id
id - the id of the format string to retrieve.
Date Tools