| Overview | Module | Function | Class | Tea 3.2.4 Reference Documentation © 2009 PDM&FC |
TDate
TDate represent an instant in time,
with the precision of a second. It is possible to obtain the
system current time by creating an instance without passing any
arguments to the constructor.
|
|
TDate after aDate
Checks if the date represented by the object is more recent than another date.
TDate object it will be compared against.
aDate. False otherwise.
TDate before aDate
Checks if the date represented by the object precedes another date.
TDate object it will be compared against.
aDate. False otherwise.
TDate compare aDate
Compares this date object with another.
TDate object it will be compared against.
aDate. 0 if this date is
exactly the same as aDate. 1 if this date comes after
aDate.
TDate constructor
TDate constructor aYear aMonth aDay anHour aMinute aSecond
TDate constructor aYear aMonth aDay
TDate constructor aDate
TDate constructor aString
Initializes the TDate object with a given date.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
aString argument may have 6, 8, 12 or 14
characters of length. When it has 6 characters it is taken to
represent a date in the "YYMMDD" format, where values of
the year component less than 70 are taken to belong to the XXI
century.
TDate format formatString
Generates a string with a representation of the date.
formatString.
formatString is expected to follow the same
rules as the formating string for the Java
java.text.SimpleDateFormat class. Otherwise a runtime
error will occur.
TDate getDay
Fetches the value of the day component of the
TDate object.
TDate object.
TDate object and
returns an integer with its value. The value will always be between
1 and 31.
TDate getDayOfWeek
Fetches the day of the week associated with the
TDate object.
TDate object.
TDate getHour
Fetches the value of the hour component of the
TDate object.
TDate object.
TDate object and
returns an integer with its value. The returned value will
always be between 0 and 23.
TDate getMinute
Fetches the value of the minutes component of the
TDate object.
TDate object
TDate object and
returns an integer with its value. The returned value will
always be between 0 and 59.
TDate getMonth
Fetches the value of the month component of the
TDate object.
TDate object
TDate object and
returns an integer with its value. The value will always be between
1 and 12. January is represented by 1 and December by 12.
TDate getSecond
Fetches the value of the seconds component of the
TDate object.
TDate object
TDate object and
returns an integer with its value. The returned value will always
be between 0 and 59.
TDate getYear
Fetches the value of the year component of the
TDate object.
TDate object.
TDate object and
returns an integer with its value.
TDate notSame aDate
Checks if the date represented by the object is not the same as another date.
TDate object it will be compared against.
aDate. False otherwise.
TDate same aDate
Checks if the date represented by the object is the same as another date.
TDate object it will be compared against.
aDate. False otherwise.
TDate setDate aYear aMonth aDay anHour aMinute aSecond
TDate setDate aYear aMonth aDay
TDate setDate aDate
TDate setDate aString
Changes the date the TDate object represents.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate object.
aString argument may have 6, 8, 12 or 14
characters of length. When it has 6 characters it is taken to
represent a date in the "YYMMDD" format, where values of
the year component less than 70 are taken to belong to the XXI
century.
TDate setTime anHour aMinute aSecond
Changes the hour, minute and second components of the
TDate object, leaving all the others unchanged.
TDate
object will be initialized with.
TDate
object will be initialized with.
TDate
object will be initialized with.
| Overview | Module | Function | Class | Tea 3.2.4 Reference Documentation © 2009 PDM&FC |