mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Store String as zone in struct vtm.
This removes zone_table and use fstring instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60012d130c
commit
277cedb84c
3 changed files with 50 additions and 68 deletions
2
timev.h
2
timev.h
|
@ -5,7 +5,7 @@ PACKED_STRUCT_UNALIGNED(struct vtm {
|
|||
VALUE year; /* 2000 for example. Integer. */
|
||||
VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */
|
||||
VALUE utc_offset; /* -3600 as -01:00 for example. possibly Rational. */
|
||||
const char *zone; /* "JST", "EST", "EDT", etc. */
|
||||
VALUE zone; /* "JST", "EST", "EDT", etc. as String */
|
||||
unsigned int yday:9; /* 1..366 */
|
||||
unsigned int mon:4; /* 1..12 */
|
||||
unsigned int mday:5; /* 1..31 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue