Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "ruby.h"
#include "ruby/encoding.h"
#include "ruby/util.h"
#include <math.h>
#include <time.h>
#include <assert.h>
#include "date_tmx.h"
#include <errno.h>
Go to the source code of this file.
Data Structures | |
struct | SimpleDateData |
struct | ComplexDateData |
union | DateData |
Macros | |
#define | NDEBUG |
#define | USE_PACK |
#define | f_boolcast(x) ((x) ? Qtrue : Qfalse) |
#define | f_abs(x) rb_funcall(x, rb_intern("abs"), 0) |
#define | f_negate(x) rb_funcall(x, rb_intern("-@"), 0) |
#define | f_add(x, y) rb_funcall(x, '+', 1, y) |
#define | f_sub(x, y) rb_funcall(x, '-', 1, y) |
#define | f_mul(x, y) rb_funcall(x, '*', 1, y) |
#define | f_div(x, y) rb_funcall(x, '/', 1, y) |
#define | f_quo(x, y) rb_funcall(x, rb_intern("quo"), 1, y) |
#define | f_idiv(x, y) rb_funcall(x, rb_intern("div"), 1, y) |
#define | f_mod(x, y) rb_funcall(x, '%', 1, y) |
#define | f_remainder(x, y) rb_funcall(x, rb_intern("remainder"), 1, y) |
#define | f_expt(x, y) rb_funcall(x, rb_intern("**"), 1, y) |
#define | f_floor(x) rb_funcall(x, rb_intern("floor"), 0) |
#define | f_ceil(x) rb_funcall(x, rb_intern("ceil"), 0) |
#define | f_truncate(x) rb_funcall(x, rb_intern("truncate"), 0) |
#define | f_round(x) rb_funcall(x, rb_intern("round"), 0) |
#define | f_to_i(x) rb_funcall(x, rb_intern("to_i"), 0) |
#define | f_to_r(x) rb_funcall(x, rb_intern("to_r"), 0) |
#define | f_to_s(x) rb_funcall(x, rb_intern("to_s"), 0) |
#define | f_inspect(x) rb_funcall(x, rb_intern("inspect"), 0) |
#define | f_add3(x, y, z) f_add(f_add(x, y), z) |
#define | f_sub3(x, y, z) f_sub(f_sub(x, y), z) |
#define | f_frozen_ary(...) rb_obj_freeze(rb_ary_new3(__VA_ARGS__)) |
#define | RETURN_FALSE_UNLESS_NUMERIC(obj) if(!RTEST(rb_obj_is_kind_of((obj), rb_cNumeric))) return Qfalse |
#define | f_nonzero_p(x) (!f_zero_p(x)) |
#define | f_positive_p(x) (!f_negative_p(x)) |
#define | f_ajd(x) rb_funcall(x, rb_intern("ajd"), 0) |
#define | f_jd(x) rb_funcall(x, rb_intern("jd"), 0) |
#define | f_year(x) rb_funcall(x, rb_intern("year"), 0) |
#define | f_mon(x) rb_funcall(x, rb_intern("mon"), 0) |
#define | f_mday(x) rb_funcall(x, rb_intern("mday"), 0) |
#define | f_wday(x) rb_funcall(x, rb_intern("wday"), 0) |
#define | f_hour(x) rb_funcall(x, rb_intern("hour"), 0) |
#define | f_min(x) rb_funcall(x, rb_intern("min"), 0) |
#define | f_sec(x) rb_funcall(x, rb_intern("sec"), 0) |
#define | NDIV(x, y) (-(-((x)+1)/(y))-1) |
#define | NMOD(x, y) ((y)-(-((x)+1)%(y))-1) |
#define | DIV(n, d) ((n)<0 ? NDIV((n),(d)) : (n)/(d)) |
#define | MOD(n, d) ((n)<0 ? NMOD((n),(d)) : (n)%(d)) |
#define | HAVE_JD (1 << 0) |
#define | HAVE_DF (1 << 1) |
#define | HAVE_CIVIL (1 << 2) |
#define | HAVE_TIME (1 << 3) |
#define | COMPLEX_DAT (1 << 7) |
#define | have_jd_p(x) ((x)->flags & HAVE_JD) |
#define | have_df_p(x) ((x)->flags & HAVE_DF) |
#define | have_civil_p(x) ((x)->flags & HAVE_CIVIL) |
#define | have_time_p(x) ((x)->flags & HAVE_TIME) |
#define | complex_dat_p(x) ((x)->flags & COMPLEX_DAT) |
#define | simple_dat_p(x) (!complex_dat_p(x)) |
#define | ITALY 2299161 /* 1582-10-15 */ |
#define | ENGLAND 2361222 /* 1752-09-14 */ |
#define | JULIAN positive_inf |
#define | GREGORIAN negative_inf |
#define | DEFAULT_SG ITALY |
#define | UNIX_EPOCH_IN_CJD INT2FIX(2440588) /* 1970-01-01 */ |
#define | MINUTE_IN_SECONDS 60 |
#define | HOUR_IN_SECONDS 3600 |
#define | DAY_IN_SECONDS 86400 |
#define | SECOND_IN_MILLISECONDS 1000 |
#define | SECOND_IN_NANOSECONDS 1000000000 |
#define | JC_PERIOD0 1461 /* 365.25 * 4 */ |
#define | GC_PERIOD0 146097 /* 365.2425 * 400 */ |
#define | CM_PERIOD0 71149239 /* (lcm 7 1461 146097) */ |
#define | CM_PERIOD (0xfffffff / CM_PERIOD0 * CM_PERIOD0) |
#define | CM_PERIOD_JCY (CM_PERIOD / JC_PERIOD0 * 4) |
#define | CM_PERIOD_GCY (CM_PERIOD / GC_PERIOD0 * 400) |
#define | REFORM_BEGIN_YEAR 1582 |
#define | REFORM_END_YEAR 1930 |
#define | REFORM_BEGIN_JD 2298874 /* ns 1582-01-01 */ |
#define | REFORM_END_JD 2426355 /* os 1930-12-31 */ |
#define | SEC_WIDTH 6 |
#define | MIN_WIDTH 6 |
#define | HOUR_WIDTH 5 |
#define | MDAY_WIDTH 5 |
#define | MON_WIDTH 4 |
#define | SEC_SHIFT 0 |
#define | MIN_SHIFT SEC_WIDTH |
#define | HOUR_SHIFT (MIN_WIDTH + SEC_WIDTH) |
#define | MDAY_SHIFT (HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
#define | MON_SHIFT (MDAY_WIDTH + HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
#define | PK_MASK(x) ((1 << (x)) - 1) |
#define | EX_SEC(x) (((x) >> SEC_SHIFT) & PK_MASK(SEC_WIDTH)) |
#define | EX_MIN(x) (((x) >> MIN_SHIFT) & PK_MASK(MIN_WIDTH)) |
#define | EX_HOUR(x) (((x) >> HOUR_SHIFT) & PK_MASK(HOUR_WIDTH)) |
#define | EX_MDAY(x) (((x) >> MDAY_SHIFT) & PK_MASK(MDAY_WIDTH)) |
#define | EX_MON(x) (((x) >> MON_SHIFT) & PK_MASK(MON_WIDTH)) |
#define | PACK5(m, d, h, min, s) |
#define | PACK2(m, d) (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT)) |
#define | date_sg_t double |
#define | get_d1(x) |
#define | get_d1a(x) |
#define | get_d1b(x) |
#define | get_d2(x, y) |
#define | set_to_simple(obj, x, _nth, _jd, _sg, _year, _mon, _mday, _flags) |
#define | set_to_complex(obj, x, _nth, _jd, _df, _sf, _of, _sg, _year, _mon, _mday, _hour, _min, _sec, _flags) |
#define | copy_simple_to_complex(obj, x, y) |
#define | copy_complex_to_simple(obj, x, y) |
#define | canonicalize_jd(_nth, _jd) |
#define | HALF_DAYS_IN_SECONDS (DAY_IN_SECONDS / 2) |
#define | decode_offset(of, s, h, m) |
#define | valid_sg(sg) |
#define | jd_trunc d_trunc |
#define | k_trunc d_trunc |
#define | num2num_with_frac(s, n) |
#define | num2int_with_frac(s, n) |
#define | canon24oc() |
#define | add_frac() |
#define | val2sg(vsg, dsg) |
#define | set_hash0(k, v) rb_hash_aset(hash, k, v) |
#define | ref_hash0(k) rb_hash_aref(hash, k) |
#define | del_hash0(k) rb_hash_delete(hash, k) |
#define | sym(x) ID2SYM(rb_intern(x"")) |
#define | set_hash(k, v) set_hash0(sym(k), v) |
#define | ref_hash(k) ref_hash0(sym(k)) |
#define | del_hash(k) del_hash0(sym(k)) |
#define | val2off(vof, iof) |
#define | SMALLBUF 100 |
#define | MILLISECOND_IN_NANOSECONDS 1000000 |
#define | f_subsec(x) rb_funcall(x, rb_intern("subsec"), 0) |
#define | f_utc_offset(x) rb_funcall(x, rb_intern("utc_offset"), 0) |
#define | f_local3(x, y, m, d) rb_funcall(x, rb_intern("local"), 3, y, m, d) |
Enumerations | |
enum | { DECIMAL_SIZE_OF_LONG = DECIMAL_SIZE_OF_BITS(CHAR_BIT*sizeof(long)) , JISX0301_DATE_SIZE = DECIMAL_SIZE_OF_LONG+8 } |
Functions | |
VALUE | date_zone_to_diff (VALUE) |
VALUE | date__strptime (const char *str, size_t slen, const char *fmt, size_t flen, VALUE hash) |
VALUE | date__parse (VALUE str, VALUE comp) |
VALUE | date__iso8601 (VALUE) |
VALUE | date__rfc3339 (VALUE) |
VALUE | date__xmlschema (VALUE) |
VALUE | date__rfc2822 (VALUE) |
VALUE | date__httpdate (VALUE) |
VALUE | date__jisx0301 (VALUE) |
size_t | date_strftime (char *s, size_t maxsize, const char *format, const struct tmx *tmx) |
void | Init_date_core (void) |
#define add_frac | ( | ) |
Definition at line 3265 of file date_core.c.
#define canon24oc | ( | ) |
Definition at line 3257 of file date_core.c.
#define canonicalize_jd | ( | _nth, | |
_jd | |||
) |
Definition at line 1123 of file date_core.c.
#define CM_PERIOD (0xfffffff / CM_PERIOD0 * CM_PERIOD0) |
Definition at line 198 of file date_core.c.
#define CM_PERIOD0 71149239 /* (lcm 7 1461 146097) */ |
Definition at line 197 of file date_core.c.
#define CM_PERIOD_GCY (CM_PERIOD / GC_PERIOD0 * 400) |
Definition at line 200 of file date_core.c.
#define CM_PERIOD_JCY (CM_PERIOD / JC_PERIOD0 * 4) |
Definition at line 199 of file date_core.c.
#define COMPLEX_DAT (1 << 7) |
Definition at line 172 of file date_core.c.
#define complex_dat_p | ( | x | ) | ((x)->flags & COMPLEX_DAT) |
Definition at line 178 of file date_core.c.
#define copy_complex_to_simple | ( | obj, | |
x, | |||
y | |||
) |
Definition at line 429 of file date_core.c.
#define copy_simple_to_complex | ( | obj, | |
x, | |||
y | |||
) |
Definition at line 403 of file date_core.c.
#define date_sg_t double |
Definition at line 243 of file date_core.c.
#define DAY_IN_SECONDS 86400 |
Definition at line 191 of file date_core.c.
#define decode_offset | ( | of, | |
s, | |||
h, | |||
m | |||
) |
Definition at line 1942 of file date_core.c.
#define DEFAULT_SG ITALY |
Definition at line 185 of file date_core.c.
Definition at line 3727 of file date_core.c.
#define del_hash0 | ( | k | ) | rb_hash_delete(hash, k) |
Definition at line 3721 of file date_core.c.
#define DIV | ( | n, | |
d | |||
) | ((n)<0 ? NDIV((n),(d)) : (n)/(d)) |
Definition at line 165 of file date_core.c.
#define ENGLAND 2361222 /* 1752-09-14 */ |
Definition at line 182 of file date_core.c.
#define EX_HOUR | ( | x | ) | (((x) >> HOUR_SHIFT) & PK_MASK(HOUR_WIDTH)) |
Definition at line 224 of file date_core.c.
#define EX_MDAY | ( | x | ) | (((x) >> MDAY_SHIFT) & PK_MASK(MDAY_WIDTH)) |
Definition at line 225 of file date_core.c.
Definition at line 223 of file date_core.c.
Definition at line 226 of file date_core.c.
Definition at line 222 of file date_core.c.
#define f_abs | ( | x | ) | rb_funcall(x, rb_intern("abs"), 0) |
Definition at line 32 of file date_core.c.
#define f_add | ( | x, | |
y | |||
) | rb_funcall(x, '+', 1, y) |
Definition at line 34 of file date_core.c.
Definition at line 53 of file date_core.c.
#define f_ajd | ( | x | ) | rb_funcall(x, rb_intern("ajd"), 0) |
Definition at line 152 of file date_core.c.
Definition at line 30 of file date_core.c.
#define f_ceil | ( | x | ) | rb_funcall(x, rb_intern("ceil"), 0) |
Definition at line 44 of file date_core.c.
#define f_div | ( | x, | |
y | |||
) | rb_funcall(x, '/', 1, y) |
Definition at line 37 of file date_core.c.
#define f_expt | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("**"), 1, y) |
Definition at line 42 of file date_core.c.
#define f_floor | ( | x | ) | rb_funcall(x, rb_intern("floor"), 0) |
Definition at line 43 of file date_core.c.
#define f_frozen_ary | ( | ... | ) | rb_obj_freeze(rb_ary_new3(__VA_ARGS__)) |
Definition at line 56 of file date_core.c.
#define f_hour | ( | x | ) | rb_funcall(x, rb_intern("hour"), 0) |
Definition at line 158 of file date_core.c.
#define f_idiv | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("div"), 1, y) |
Definition at line 39 of file date_core.c.
#define f_inspect | ( | x | ) | rb_funcall(x, rb_intern("inspect"), 0) |
Definition at line 51 of file date_core.c.
#define f_jd | ( | x | ) | rb_funcall(x, rb_intern("jd"), 0) |
Definition at line 153 of file date_core.c.
#define f_local3 | ( | x, | |
y, | |||
m, | |||
d | |||
) | rb_funcall(x, rb_intern("local"), 3, y, m, d) |
Definition at line 8747 of file date_core.c.
#define f_mday | ( | x | ) | rb_funcall(x, rb_intern("mday"), 0) |
Definition at line 156 of file date_core.c.
#define f_min | ( | x | ) | rb_funcall(x, rb_intern("min"), 0) |
Definition at line 159 of file date_core.c.
#define f_mod | ( | x, | |
y | |||
) | rb_funcall(x, '%', 1, y) |
Definition at line 40 of file date_core.c.
#define f_mon | ( | x | ) | rb_funcall(x, rb_intern("mon"), 0) |
Definition at line 155 of file date_core.c.
#define f_mul | ( | x, | |
y | |||
) | rb_funcall(x, '*', 1, y) |
Definition at line 36 of file date_core.c.
#define f_negate | ( | x | ) | rb_funcall(x, rb_intern("-@"), 0) |
Definition at line 33 of file date_core.c.
#define f_nonzero_p | ( | x | ) | (!f_zero_p(x)) |
Definition at line 140 of file date_core.c.
#define f_positive_p | ( | x | ) | (!f_negative_p(x)) |
Definition at line 150 of file date_core.c.
#define f_quo | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("quo"), 1, y) |
Definition at line 38 of file date_core.c.
#define f_remainder | ( | x, | |
y | |||
) | rb_funcall(x, rb_intern("remainder"), 1, y) |
Definition at line 41 of file date_core.c.
#define f_round | ( | x | ) | rb_funcall(x, rb_intern("round"), 0) |
Definition at line 46 of file date_core.c.
#define f_sec | ( | x | ) | rb_funcall(x, rb_intern("sec"), 0) |
Definition at line 160 of file date_core.c.
#define f_sub | ( | x, | |
y | |||
) | rb_funcall(x, '-', 1, y) |
Definition at line 35 of file date_core.c.
Definition at line 54 of file date_core.c.
#define f_subsec | ( | x | ) | rb_funcall(x, rb_intern("subsec"), 0) |
Definition at line 8745 of file date_core.c.
#define f_to_i | ( | x | ) | rb_funcall(x, rb_intern("to_i"), 0) |
Definition at line 48 of file date_core.c.
#define f_to_r | ( | x | ) | rb_funcall(x, rb_intern("to_r"), 0) |
Definition at line 49 of file date_core.c.
#define f_to_s | ( | x | ) | rb_funcall(x, rb_intern("to_s"), 0) |
Definition at line 50 of file date_core.c.
#define f_truncate | ( | x | ) | rb_funcall(x, rb_intern("truncate"), 0) |
Definition at line 45 of file date_core.c.
#define f_utc_offset | ( | x | ) | rb_funcall(x, rb_intern("utc_offset"), 0) |
Definition at line 8746 of file date_core.c.
#define f_wday | ( | x | ) | rb_funcall(x, rb_intern("wday"), 0) |
Definition at line 157 of file date_core.c.
#define f_year | ( | x | ) | rb_funcall(x, rb_intern("year"), 0) |
Definition at line 154 of file date_core.c.
#define GC_PERIOD0 146097 /* 365.2425 * 400 */ |
Definition at line 196 of file date_core.c.
#define get_d1 | ( | x | ) |
Definition at line 300 of file date_core.c.
#define get_d1a | ( | x | ) |
Definition at line 304 of file date_core.c.
#define get_d1b | ( | x | ) |
Definition at line 308 of file date_core.c.
#define get_d2 | ( | x, | |
y | |||
) |
Definition at line 312 of file date_core.c.
#define GREGORIAN negative_inf |
Definition at line 184 of file date_core.c.
#define HALF_DAYS_IN_SECONDS (DAY_IN_SECONDS / 2) |
Definition at line 1570 of file date_core.c.
#define HAVE_CIVIL (1 << 2) |
Definition at line 170 of file date_core.c.
#define have_civil_p | ( | x | ) | ((x)->flags & HAVE_CIVIL) |
Definition at line 176 of file date_core.c.
#define HAVE_DF (1 << 1) |
Definition at line 169 of file date_core.c.
#define have_df_p | ( | x | ) | ((x)->flags & HAVE_DF) |
Definition at line 175 of file date_core.c.
#define HAVE_JD (1 << 0) |
Definition at line 168 of file date_core.c.
#define have_jd_p | ( | x | ) | ((x)->flags & HAVE_JD) |
Definition at line 174 of file date_core.c.
#define HAVE_TIME (1 << 3) |
Definition at line 171 of file date_core.c.
#define have_time_p | ( | x | ) | ((x)->flags & HAVE_TIME) |
Definition at line 177 of file date_core.c.
#define HOUR_IN_SECONDS 3600 |
Definition at line 190 of file date_core.c.
Definition at line 216 of file date_core.c.
#define HOUR_WIDTH 5 |
Definition at line 210 of file date_core.c.
#define ITALY 2299161 /* 1582-10-15 */ |
Definition at line 181 of file date_core.c.
#define JC_PERIOD0 1461 /* 365.25 * 4 */ |
Definition at line 195 of file date_core.c.
#define jd_trunc d_trunc |
Definition at line 3183 of file date_core.c.
#define JULIAN positive_inf |
Definition at line 183 of file date_core.c.
#define k_trunc d_trunc |
Definition at line 3184 of file date_core.c.
#define MDAY_SHIFT (HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
Definition at line 217 of file date_core.c.
#define MDAY_WIDTH 5 |
Definition at line 211 of file date_core.c.
#define MILLISECOND_IN_NANOSECONDS 1000000 |
Definition at line 6820 of file date_core.c.
#define MIN_SHIFT SEC_WIDTH |
Definition at line 215 of file date_core.c.
#define MIN_WIDTH 6 |
Definition at line 209 of file date_core.c.
#define MINUTE_IN_SECONDS 60 |
Definition at line 189 of file date_core.c.
#define MOD | ( | n, | |
d | |||
) | ((n)<0 ? NMOD((n),(d)) : (n)%(d)) |
Definition at line 166 of file date_core.c.
#define MON_SHIFT (MDAY_WIDTH + HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH) |
Definition at line 218 of file date_core.c.
#define MON_WIDTH 4 |
Definition at line 212 of file date_core.c.
#define NDEBUG |
Definition at line 15 of file date_core.c.
#define NDIV | ( | x, | |
y | |||
) | (-(-((x)+1)/(y))-1) |
Definition at line 163 of file date_core.c.
#define NMOD | ( | x, | |
y | |||
) | ((y)-(-((x)+1)%(y))-1) |
Definition at line 164 of file date_core.c.
#define num2int_with_frac | ( | s, | |
n | |||
) |
Definition at line 3247 of file date_core.c.
#define num2num_with_frac | ( | s, | |
n | |||
) |
Definition at line 3237 of file date_core.c.
#define PACK2 | ( | m, | |
d | |||
) | (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT)) |
Definition at line 232 of file date_core.c.
#define PACK5 | ( | m, | |
d, | |||
h, | |||
min, | |||
s | |||
) |
Definition at line 228 of file date_core.c.
#define PK_MASK | ( | x | ) | ((1 << (x)) - 1) |
Definition at line 220 of file date_core.c.
Definition at line 3726 of file date_core.c.
#define ref_hash0 | ( | k | ) | rb_hash_aref(hash, k) |
Definition at line 3720 of file date_core.c.
#define REFORM_BEGIN_JD 2298874 /* ns 1582-01-01 */ |
Definition at line 204 of file date_core.c.
#define REFORM_BEGIN_YEAR 1582 |
Definition at line 202 of file date_core.c.
#define REFORM_END_JD 2426355 /* os 1930-12-31 */ |
Definition at line 205 of file date_core.c.
#define REFORM_END_YEAR 1930 |
Definition at line 203 of file date_core.c.
#define RETURN_FALSE_UNLESS_NUMERIC | ( | obj | ) | if(!RTEST(rb_obj_is_kind_of((obj), rb_cNumeric))) return Qfalse |
Definition at line 61 of file date_core.c.
#define SEC_SHIFT 0 |
Definition at line 214 of file date_core.c.
#define SEC_WIDTH 6 |
Definition at line 208 of file date_core.c.
#define SECOND_IN_MILLISECONDS 1000 |
Definition at line 192 of file date_core.c.
#define SECOND_IN_NANOSECONDS 1000000000 |
Definition at line 193 of file date_core.c.
Definition at line 3725 of file date_core.c.
#define set_hash0 | ( | k, | |
v | |||
) | rb_hash_aset(hash, k, v) |
Definition at line 3719 of file date_core.c.
#define set_to_complex | ( | obj, | |
x, | |||
_nth, | |||
_jd, | |||
_df, | |||
_sf, | |||
_of, | |||
_sg, | |||
_year, | |||
_mon, | |||
_mday, | |||
_hour, | |||
_min, | |||
_sec, | |||
_flags | |||
) |
Definition at line 370 of file date_core.c.
#define set_to_simple | ( | obj, | |
x, | |||
_nth, | |||
_jd, | |||
_sg, | |||
_year, | |||
_mon, | |||
_mday, | |||
_flags | |||
) |
Definition at line 340 of file date_core.c.
#define simple_dat_p | ( | x | ) | (!complex_dat_p(x)) |
Definition at line 179 of file date_core.c.
#define SMALLBUF 100 |
Definition at line 6768 of file date_core.c.
Definition at line 3723 of file date_core.c.
#define UNIX_EPOCH_IN_CJD INT2FIX(2440588) /* 1970-01-01 */ |
Definition at line 187 of file date_core.c.
#define USE_PACK |
Definition at line 22 of file date_core.c.
#define val2off | ( | vof, | |
iof | |||
) |
Definition at line 4878 of file date_core.c.
#define val2sg | ( | vsg, | |
dsg | |||
) |
Definition at line 3271 of file date_core.c.
#define valid_sg | ( | sg | ) |
Definition at line 2432 of file date_core.c.
anonymous enum |
Enumerator | |
---|---|
DECIMAL_SIZE_OF_LONG | |
JISX0301_DATE_SIZE |
Definition at line 7202 of file date_core.c.
Definition at line 2941 of file date_parse.c.
References rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Definition at line 2508 of file date_parse.c.
References rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Referenced by date__jisx0301().
Definition at line 3015 of file date_parse.c.
References date__iso8601(), rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Definition at line 2090 of file date_parse.c.
References asp_string, date_zone_to_diff(), del_hash, f_add, f_ge_p, f_gsub_bang, f_le_p, f_negate, HAVE_ALPHA, HAVE_DASH, HAVE_DIGIT, HAVE_DOT, HAVE_ELEM_P, HAVE_SLASH, INT2FIX, NIL_P, Qnil, rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), rb_str_dup(), ref_hash, REGCOMP_0, RTEST, set_hash, and str.
Definition at line 2795 of file date_parse.c.
References rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Definition at line 2576 of file date_parse.c.
References rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Definition at line 2722 of file date_parse.c.
References rb_backref_get(), rb_backref_set(), rb_hash_new(), rb_match_busy(), and str.
Definition at line 628 of file date_strftime.c.
Definition at line 411 of file date_parse.c.
References ALLOCV_END, ALLOCV_N, f_add, INT2FIX, issign, MAX_WORD_LENGTH, num, zone::offset, Qnil, RB_GC_GUARD, rb_int_positive_pow(), rb_rational_new(), RSTRING_LEN, RSTRING_PTR, ruby_scan_digits(), str, strncasecmp, STRTOUL, and zonetab().
void Init_date_core | ( | void | ) |
Definition at line 9334 of file date_core.c.
References CLASS_OF, DAY_IN_SECONDS, DBL2NUM, ENGLAND, f_mul, GREGORIAN, id_cmp, INFINITY, INT2FIX, ITALY, JULIAN, LL2NUM, LONG2NUM, rb_cObject, rb_cTime, rb_define_alias(), rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_method, rb_define_private_method, rb_define_singleton_method, rb_eArgError, RB_EXT_RACTOR_SAFE, rb_gc_register_mark_object(), rb_include_module(), rb_mComparable, rb_rational_new2, rb_singleton_class(), rb_undef_method(), and SECOND_IN_NANOSECONDS.