module core.c.time
C Bindings | C Standard Library Bindings

Code Map

module core.c.time;


enum CLOCKS_PER_SEC;

alias time_t = c_long;
alias clock_t = c_long;

struct tm
{
public:
	tm_sec: i32;
	tm_min: i32;
	tm_hour: i32;
	tm_mday: i32;
	tm_mon: i32;
	tm_year: i32;
	tm_wday: i32;
	tm_yday: i32;
	tm_isdst: i32;
	tm_gmtoff: c_long;
	tm_zone: const(char)*;
}

fn clock() clock_t;
fn difftime(time1: time_t, time0: time_t) f64;
fn mktime(timeptr: tm*) time_t;
fn time(timer: time_t*) time_t;
fn asctime(timeptr: const(const(tm)*)) char*;
fn ctime(timer: const(const(time_t)*)) char*;
fn gmtime(timer: const(const(time_t)*)) tm*;
fn localtime(timer: const(const(time_t)*)) tm*;
fn strftime(s: char*, maxsize: size_t, format: const(const(char)*), timeptr: const(const(tm)*)) size_t;
fn tzset();