Custom formats for date-time data
Name
|
Description
|
AMPM
|
Return the time string for an object to the nearest second.
|
AMPMMinutes
|
Return the time string for an object not showing seconds.
|
aCommon
|
Return a string representing the object's value with the format: Mar 1, 1997 1:45 pm.
|
aCommonZ
|
Return a string representing the object's value with the format: Mar 1, 1997 1:45 pm US/Eastern.
|
aDay
|
Return the abbreviated name of the day of the week.
|
aMonth
|
Return the abbreviated month name.
|
ampm
|
Return the appropriate time modifier (am or pm).
|
Date
|
Return the date string for the object.
|
Day
|
Return the full name of the day of the week.
|
DayOfWeek
|
Compatibility: see Day.
|
day
|
Return the integer day.
|
dayOfYear
|
Return the day of the year, in context of the time-zone representation of the object.
|
dd
|
Return day as a 2 digit string.
|
fCommon
|
Return a string representing the object's value with the format: March 1, 1997 1:45 pm.
|
fCommonZ
|
Return a string representing the object's value with the format: March 1, 1997 1:45 pm US/Eastern.
|
HTML4
|
The W3C recommended date & time format YYYY-MM-DDTHH:MM:SSZ. T,Z are literal characters. Time is in UTC.
|
h_12
|
Return the 12-hour clock representation of the hour.
|
h_24
|
Return the 24-hour clock representation of the hour.
|
hour
|
Return the 24-hour clock representation of the hour.
|
isCurrentHour
|
Return true if this object represents a date/time that falls within the current hour, in the context of this object's time-zone representation.
|
isCurrentMonth
|
Return true if this object represents a date/time that falls within the current month, in the context of this object's time-zone representation.
|
isFuture
|
Return true if this object represents a date/time later than the time of the call.
|
isLeapYear
|
Return true if the current year (in the context of the object's time zone) is a leap year.
|
isPast
|
Return true if this object represents a date/time earlier than the time of the call.
|
Mon_
|
Return the full month name.
|
Mon
|
Compatibility: see aMonth.
|
Month
|
Return the full month name.
|
minute
|
Return the minute.
|
mm
|
Return month as a 2 digit string.
|
month
|
Return the month of the object as an integer.
|
notEqualTo(t)
|
Compare this DateTime object to another DateTime object OR a floating point number, such as that which is returned by the python time module. Returns true if the object represents a date/time not equal to the specified DateTime or time module style time.
|
PreciseAMPM
|
Return the time string for the object.
|
PreciseTime
|
Return the time string for the object.
|
pCommon
|
Return a string representing the object's value with the format: Mar. 1, 1997 1:45 pm.
|
pCommonZ
|
Return a string representing the object's value with the format: Mar. 1, 1997 1:45 pm US/Eastern.
|
pDay
|
Return the abbreviated (with period) name of the day of the week.
|
pMonth
|
Return the abbreviated (with period) month name.
|
rfc822
|
Return the date in RFC 822 format.
|
second
|
Return the second.
|
TimeMinutes
|
Return the time string for an object not showing seconds.
|
Time
|
Return the time string for an object to the nearest second.
|
timezone
|
Return the time zone in which the object is represented.
|
year
|
Return the calendar year of the object
|
yy
|
Return calendar year as a 2 digit string.
|