expanded class TIME
Summary
Time and date facilities: year, month, day, hour and seconds.
Direct parents
Insert list: COMPARABLE, HASHABLE, TIME_HANDLER
Overview
Features
{ANY}
  • out: STRING
    Create a new string containing terse printable representation of current object.
{ANY}
Setting:
{ANY}
{ANY}
Setting common time mode (local or universal):
{ANY}
Hashing:
{ANY}
{TIME, FILE_TOOLS, TIME_FORMATTER, MICROSECOND_TIME}
{TIME_HANDLER}
{}
{ANY}
  • infix "<=" (other: TIME): BOOLEAN
    Is Current less than or equal other?
  • infix ">" (other: TIME): BOOLEAN
    Is Current strictly greater than other?
  • infix ">=" (other: TIME): BOOLEAN
    Is Current greater than or equal than other?
  • in_range (lower: TIME, upper: TIME): BOOLEAN
    Return True if Current is in range [lower..upper]
    See also min, max, compare.
  • compare (other: TIME): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • three_way_comparison (other: TIME): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • min (other: TIME): TIME
    Minimum of Current and other.
  • max (other: TIME): TIME
    Maximum of Current and other.
  • bounded_by (a_min: TIME, a_max: TIME): TIME
    A value that is equal to Current if it is between the limits set by a_min and a_max.
out: STRING
effective function
{ANY}
Create a new string containing terse printable representation of current object.
is_local_time: BOOLEAN
effective function
{ANY}
Is the local time in use?
is_universal_time: BOOLEAN
effective function
{ANY}
Is Universal Time in use?
year: INTEGER_32
effective function
{ANY}
Number of the year.
month: INTEGER_32
effective function
{ANY}
Number of the month (1 for January, 2 for February, ... 12 for December).
effective function
{ANY}
Day of the month in range 1 ..
hour: INTEGER_32
effective function
{ANY}
Hour in range 0..23.
minute: INTEGER_32
effective function
{ANY}
Minute in range 0 ..
second: INTEGER_32
effective function
{ANY}
Second in range 0 ..
week_day: INTEGER_32
effective function
{ANY}
Number of the day in the week (Sunday is 0, Monday is 1, etc.).
year_day: INTEGER_32
effective function
{ANY}
Number of the day in the year in range 0 ..
is_summer_time_used: BOOLEAN
effective function
{ANY}
Is summer time in effect?
to_microsecond_time: MICROSECOND_TIME
effective function
{ANY}
update
effective procedure
{ANY}
Update Current with the current system clock.
set (a_year: INTEGER_32, a_month: INTEGER_32, a_day: INTEGER_32, a_hour: INTEGER_32, a_min: INTEGER_32, sec: INTEGER_32): BOOLEAN
effective function
{ANY}
Try to set Current using the given information.
add_second (s: INTEGER_32)
effective procedure
{ANY}
Add s seconds to Current.
add_minute (m: INTEGER_32)
effective procedure
{ANY}
Add m minutes to Current.
add_hour (h: INTEGER_32)
effective procedure
{ANY}
Add h hours to Current.
add_day (d: INTEGER_32)
effective procedure
{ANY}
Add d days to Current.
elapsed_seconds (other: TIME): REAL_64
effective function
{ANY}
Elapsed time in seconds from Current to other.
is_equal (other: TIME): BOOLEAN
effective function
{ANY}
Is other attached to an object considered equal to current object?
infix "<" (other: TIME): BOOLEAN
effective function
{ANY}
Is Current strictly less than other?
set_universal_time
effective procedure
{ANY}
set_local_time
effective procedure
{ANY}
hash_code: INTEGER_32
effective function
{ANY}
The hash-code value of Current.
set_time_memory (tm: INTEGER_64)
effective procedure
time_memory: INTEGER_64
writable attribute
The current time value of Current.
time_mode_memo: REFERENCE[INTEGER_32]
once function
{}
The global default time_mode memory.
time_mode: INTEGER_32
effective function
{}
basic_time: INTEGER_64
{}
time_difftime (time2: INTEGER_64, time1: INTEGER_64): REAL_64
{}
time_getyear (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_getmonth (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_getday (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_gethour (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_getminute (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_getsecond (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_is_summer_time_used (tm: INTEGER_64): BOOLEAN
{}
time_getyday (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_getwday (tm: INTEGER_64, mode: INTEGER_32): INTEGER_32
{}
time_mktime (a_year: INTEGER_32, a_mon: INTEGER_32, a_day: INTEGER_32, a_hour: INTEGER_32, a_min: INTEGER_32, a_sec: INTEGER_32): INTEGER_64
{}
time_add_second (time: POINTER, s: INTEGER_32)
{}
infix "<=" (other: TIME): BOOLEAN
effective function
{ANY}
Is Current less than or equal other?
infix ">" (other: TIME): BOOLEAN
effective function
{ANY}
Is Current strictly greater than other?
infix ">=" (other: TIME): BOOLEAN
effective function
{ANY}
Is Current greater than or equal than other?
in_range (lower: TIME, upper: TIME): BOOLEAN
effective function
{ANY}
Return True if Current is in range [lower..upper]
See also min, max, compare.
compare (other: TIME): INTEGER_32
effective function
{ANY}
If current object equal to other, 0 if smaller, -1; if greater, 1.
three_way_comparison (other: TIME): INTEGER_32
effective function
{ANY}
If current object equal to other, 0 if smaller, -1; if greater, 1.
min (other: TIME): TIME
effective function
{ANY}
Minimum of Current and other.
max (other: TIME): TIME
effective function
{ANY}
Maximum of Current and other.
bounded_by (a_min: TIME, a_max: TIME): TIME
effective function
{ANY}
A value that is equal to Current if it is between the limits set by a_min and a_max.