Ruby: timev.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros | Typedefs | Functions
timev.h File Reference
`#include "ruby/ruby.h"`

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;VALUE zone;unsigned int yday:9;unsigned int mon:4;unsigned int mday:5;unsigned int hour:5;unsigned int min:6;unsigned int sec:6;unsigned int wday:3;unsigned int isdst:2;})
VALUE | rb_time_zone_abbreviation (VALUE zone, VALUE time)

## Macro Definition Documentation

## ◆ TIME_SCALE

#define TIME_SCALE 1000000000

Definition at line 23 of file timev.h.

## ◆ TYPEOF_TIMEVAL_TV_SEC

#define TYPEOF_TIMEVAL_TV_SEC time_t

Definition at line 26 of file timev.h.

## ◆ TYPEOF_TIMEVAL_TV_USEC

#define TYPEOF_TIMEVAL_TV_USEC long

Definition at line 32 of file timev.h.

## Typedef Documentation

## ◆ unsigned_time_t

typedef unsigned long unsigned_time_t

Definition at line 37 of file timev.h.

## Function Documentation

## ◆ PACKED_STRUCT_UNALIGNED()

PACKED_STRUCT_UNALIGNED | ( | struct vtm { VALUE year;VALUE subsecx;VALUE utc_offset;VALUE zone;unsigned int yday:9;unsigned int mon:4;unsigned int mday:5;unsigned int hour:5;unsigned int min:6;unsigned int sec:6;unsigned int wday:3;unsigned int isdst:2;} |  | ) |

## ◆ rb_time_zone_abbreviation()

VALUE rb_time_zone_abbreviation | ( | VALUE | zone,
|  | VALUE | time
| ) |  |

Definition at line 5664 of file time.c.

References NIL_P, Qnil, Qundef, rb_check_funcall(), rb_check_funcall_default(), rb_check_string_type(), rb_fstring_lit, rb_funcallv, rb_intern(), and rb_obj_as_string().