Ruby  2.5.0dev(2017-10-22revision60238)
Macros | Typedefs | Functions
timev.h File Reference

Go to the source code of this file.

Macros

#define TIME_SCALE   1000000000
 
#define TYPEOF_TIMEVAL_TV_SEC   time_t
 
#define TYPEOF_TIMEVAL_TV_USEC   long
 

Typedefs

typedef unsigned long unsigned_time_t
 

Functions

 PACKED_STRUCT_UNALIGNED (struct vtm { VALUE year;VALUE subsecx;VALUE utc_offset;const char *zone;uint16_t yday:9;uint8_t mon:4;uint8_t mday:5;uint8_t hour:5;uint8_t min:6;uint8_t sec:6;uint8_t wday:3;uint8_t isdst:2;})
 

Macro Definition Documentation

◆ TIME_SCALE

#define TIME_SCALE   1000000000

Definition at line 19 of file timev.h.

◆ TYPEOF_TIMEVAL_TV_SEC

#define TYPEOF_TIMEVAL_TV_SEC   time_t

Definition at line 22 of file timev.h.

◆ TYPEOF_TIMEVAL_TV_USEC

#define TYPEOF_TIMEVAL_TV_USEC   long

Definition at line 28 of file timev.h.

Typedef Documentation

◆ unsigned_time_t

typedef unsigned long unsigned_time_t

Definition at line 33 of file timev.h.

Function Documentation

◆ PACKED_STRUCT_UNALIGNED()

PACKED_STRUCT_UNALIGNED ( struct vtm { VALUE year;VALUE subsecx;VALUE utc_offset;const char *zone;uint16_t yday:9;uint8_t mon:4;uint8_t mday:5;uint8_t hour:5;uint8_t min:6;uint8_t sec:6;uint8_t wday:3;uint8_t isdst:2;}  )