Next: , Up: The Date And Time Library   [Index]


12.8.1 Date Functions

d_3_day

text d_3_day(date d);

is the three characters abbreviation of the name of the d day of the week, one of ‘Sun’, ‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fri’ and ‘Sat

d_3_month

text d_3_month(date d);

is the three characters abbreviation of the name of the d month of the year, one of ‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, ‘May’, ‘Jun’, ‘Jul’, ‘Aug’, ‘Sep’, ‘Oct’, ‘Nov’ and ‘Dec

d_add

void d_add(date d, time t);

adds t to d

d_compare

integer d_compare(date d, date e);

is 0 if d is same as e, less than 0 if d is less than e and greater than 0 if d is greater than e

d_copy

void d_copy(date d, date e);

sets d to e

d_d_hour

integer d_d_hour(date d);

is the d hour of the day (0 .. 23)

d_fix

void d_fix(date d, integer second, integer microsecond);

sets d to second seconds and microsecond seconds. The absolute value of microsecond is not restricted to the 0 .. 999999 range.

d_h_minute

integer d_h_minute(date d);

is the d minute of the hour (0 .. 59)

d_m_day

integer d_m_day(date d);

is the d day of the month (1 .. 31)

d_m_second

integer d_m_second(date d);

is the d second of the minute (0 .. 60)

d_microsecond

integer d_microsecond(date d);

is the d microsecond

d_n_day

text d_n_day(date d);

is the name of the d day of the week, one of ‘Sunday’, ‘Monday’, ‘Tuesday’, ‘Wednesday’, ‘Thursday’, ‘Friday’ and ‘Saturday

d_n_month

text d_n_month(date d);

is the name of the d month of the year, one of ‘January’, ‘February’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’, ‘October’, ‘November’ and ‘December

d_new

void d_new(date &d);

sets d as a new date object (does nothing if d is not linked multiple times, creates a new object and sets d as a reference of that object if it is)

d_now

void d_now(date d);

sets d to the current date

d_offset

void d_offset(date d, integer second, integer microsecond);

adds second seconds and microsecond seconds to d. The absolute value of microsecond is not restricted to the 0 .. 999999 range.

d_resolve

void d_resolve
    (date d, integer year, integer month, integer day, integer hour,
     integer minute, integer second, integer microsecond);

sets d as the year/month/day/hour/minute/second/microsecond broken down year, month, day, hour, minute, second, microsecond aggregate. The fields are not restricted to their normal ranges.

d_s_frame

integer d_s_frame(date d);

is the d frame of the second (0 .. 59) (here frame is the sixtieth part of the second)

d_second

integer d_second(date d);

is the d second

d_set

date d_set(date &d, date h);

is h, sets the d date object as a reference of the h date object

d_w_day

integer d_w_day(date d);

is the d day of the week, Sunday first (1 .. 7)

d_y_day

integer d_y_day(date d);

is the d day of the year (1 .. 366)

d_y_month

integer d_y_month(date d);

is the d month of the year (1 .. 12)

d_year

integer d_year(date d);

is the d year


Next: , Up: The Date And Time Library   [Index]