Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

core.sys.windows.stdc.time

D header file for C99/C11.
This module contains bindings to selected types and functions from the standard C header <time.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Authors:
Sean Kelly, Alex Rønne Petersen
Standards:
ISO/IEC 9899:1999 (E)
struct tm;
int tm_sec;
seconds after the minute - [0, 60]
int tm_min;
minutes after the hour - [0, 59]
int tm_hour;
hours since midnight - [0, 23]
int tm_mday;
day of the month - [1, 31]
int tm_mon;
months since January - [0, 11]
int tm_year;
years since 1900
int tm_wday;
days since Sunday - [0, 6]
int tm_yday;
days since January 1 - [0, 365]
int tm_isdst;
Daylight Saving Time flag
alias time_t = int;
alias clock_t = int;
nothrow @nogc @trusted void tzset();
nothrow @nogc @trusted void _tzset();
nothrow @nogc @system char* _strdate(return scope char* s);
nothrow @nogc @system char* _strtime(return scope char* s);
const(char)*[2] tzname;
struct _timespec32;
32-bit timespec struct
struct _timespec64;
64-bit timespec struct
alias timespec = _timespec64;
Timespec structure, introduced in C11
enum int TIME_UTC;
Base Value used for timespec_get
nothrow @nogc @system int _timespec64_get(scope _timespec64* ts, int base);
64-bit version of timespec_get for Windows
nothrow @nogc @system int _timespec32_get(scope _timespec32* ts, int base);
32-bit version of timespec_get for Windows
alias timespec_get = _timespec64_get;
timespec_get, introduced in C11