View source code
Display the source code in core/stdc/time.d from which this
page was generated on github.
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
local clone.
Struct core.stdc.time.tm
struct tm
;
struct tm
;
struct tm
;
Fields
Name | Type | Description |
---|---|---|
tm_gmtoff
|
long | offset from CUT in seconds |
tm_hour
|
int | hours since midnight [0-23] |
tm_isdst
|
int | Daylight Savings Time flag |
tm_mday
|
int | day of the month [1-31] |
tm_min
|
int | minutes after the hour [0-59] |
tm_mon
|
int | months since January [0-11] |
tm_sec
|
int | seconds after the minute [0-60] |
tm_wday
|
int | days since Sunday [0-6] |
tm_yday
|
int | days since January 1 [0-365] |
tm_year
|
int | years since 1900 |
tm_zone
|
char* | timezone abbreviation |
Fields
Name | Type | Description |
---|---|---|
tm_gmtoff
|
long | offset from CUT in seconds |
tm_hour
|
int | hours since midnight [0-23] |
tm_isdst
|
int | Daylight Savings Time flag |
tm_mday
|
int | day of the month [1-31] |
tm_min
|
int | minutes after the hour [0-59] |
tm_mon
|
int | months since January [0-11] |
tm_sec
|
int | seconds after the minute [0-60] |
tm_wday
|
int | days since Sunday [0-6] |
tm_yday
|
int | days since January 1 [0-365] |
tm_year
|
int | years since 1900 |
tm_zone
|
char* | timezone abbreviation |
Fields
Name | Type | Description |
---|---|---|
tm_hour
|
int | hours since midnight - [0, 23] |
tm_isdst
|
int | Daylight Saving Time flag |
tm_mday
|
int | day of the month - [1, 31] |
tm_min
|
int | minutes after the hour - [0, 59] |
tm_mon
|
int | months since January - [0, 11] |
tm_sec
|
int | seconds after the minute - [0, 60] |
tm_wday
|
int | days since Sunday - [0, 6] |
tm_yday
|
int | days since January 1 - [0, 365] |
tm_year
|
int | years since 1900 |
Authors
Sean Kelly, Alex Rønne Petersen
License
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.