Skip to content

Commit 53e0d38

Browse files
committed
struct tm for Windows
https://msdn.microsoft.com/en-us/library/windows/hardware/ff567981(v=vs.85).aspx Matches corecrt_wtime.h from Win10 SDK
1 parent 2015cf1 commit 53e0d38

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/windows.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ s! {
4343
pub modtime: time64_t,
4444
}
4545

46+
pub struct tm {
47+
tm_sec: ::c_int,
48+
tm_min: ::c_int,
49+
tm_hour: ::c_int,
50+
tm_mday: ::c_int,
51+
tm_mon: ::c_int,
52+
tm_year: ::c_int,
53+
tm_wday: ::c_int,
54+
tm_yday: ::c_int,
55+
tm_isdst: ::c_int,
56+
}
57+
4658
pub struct timeval {
4759
pub tv_sec: c_long,
4860
pub tv_usec: c_long,

0 commit comments

Comments
 (0)