All Classes |Grouped Classes |Index

Class CL_DateTime

Date/Time class. More...

Derived from:

None

Derived by:

None

Group:

System (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

TimeZone

CL_DateTime

Constructs a date/time object.

get_current_local_time

Get current system time in local time zone.

get_current_utc_time

Get current system time in UTC.

get_local_time_from_ticks

Converts a time tick value (number of 100-nanosecond intervals since January 1, 1601 UTC) to a date time in the local time zone.

get_utc_time_from_ticks

Converts a time tick value (number of 100-nanosecond intervals since January 1, 1601 UTC) to a date time in UTC.

from_short_date_string


Attributes:

is_null

get_year

get_month

Returns the month number in range 1-12.

get_day

get_hour

get_minutes

get_seconds

get_nanoseconds

get_timezone

get_day_of_week

Get the day of the week.


Operations:

set_null

set_date

set_year

set_month

set_day

set_hour

set_minutes

set_seconds

set_nanoseconds

set_timezone

to_utc

to_local

to_ticks

Converts the date to the number of 100-nanosecond intervals since January 1, 1601 UTC.

to_long_date_string

Mon Mar 3 2007.

to_short_date_string

yyyy-mm-dd

to_short_datetime_string

yyyy-mm-dd hh:mm:ss

to_long_time_string

hh:mm:ss

to_short_time_string

hh:mm

to_string

Mon Feb 3 12:32:54 2008.

operator<

operator<=

operator>

operator>=

operator==

operator!=