Next: CalendarTime, Previous: Integer, Up: Classes [Index]
CTime
ClassObjects of CTime
class represent the system’s UTC clock which
measures time in seconds since 1900. This class also implements the
methods that convert UTC time into calendar time.
The return value of the methods gmTime
and localTime
is an
Array
that contains the following values.
returnArray at 0 Seconds (0... 59) returnArray at 1 Minutes (0... 59) returnArray at 2 Hours (0... 23) returnArray at 3 Day of the Month (1... 31) returnArray at 4 Month (0... 11) returnArray at 5 Year (Number of years since 1900.) returnArray at 6 Day of the Week (0 = Sunday ... 6 = Saturday) returnArray at 7 Day of the Year (1... 365) returnArray at 8 > 0 = Daylight Savings Time; 0 = Standard Time; < 0 = Not Available
cTime
(void
)
Returns a formatted String
with the date and time of the
receiver.
The return String
of a cTime
call is formatted as in
this example.
"Sun Jan 6 13:04:00 2008\n"
gmTime
(void
)
Returns an Array
with the values described above for the
current Greenwich Mean Time.
haveDST
(void
)
Return an Integer
that evaluates to True if the system provides
daylight savings time information, False otherwise.
isAM
(void
)
Returns an Integer
that evaluates to True or False depending
on whether the local time is a.m. or p.m.
localTime
(void
)
Returns an Array
with the values described above for the
current local time.
timeZoneName
(void
)
Return a String
with the name of the time zone provided by the
system.
timeZoneOffset
(void
)
Return an Integer
with the time zone offset in seconds from
GMT. Not all systems provide this information.
utcTime
(void
)
Return an Integer
object containing the current UTC time.
Next: CalendarTime, Previous: Integer, Up: Classes [Index]