Lines Matching defs:utc_offset

852 static VALUE validate_utc_offset(VALUE utc_offset);
1160 vtm->utc_offset = INT2FIX(0);
1326 vtm.utc_offset = INT2FIX(0);
1403 result->utc_offset = INT2FIX(0);
1688 return lt(vtm1.utc_offset, vtm2.utc_offset) ? timew2 : timew1;
1690 return lt(vtm1.utc_offset, vtm2.utc_offset) ? timew1 : timew2;
1805 result->utc_offset = LONG2NUM(gmtoff);
1819 result->utc_offset = offset;
1848 (tobj)->vtm.utc_offset = (off), \
1853 (tobj1)->vtm.utc_offset = (tobj2)->vtm.utc_offset, \
1873 rb_gc_mark(tobj->vtm.utc_offset);
2040 vtm->utc_offset = sub(vtm->utc_offset, off);
2169 rb_raise(rb_eArgError, "\"+HH:MM\" or \"-HH:MM\" expected for utc_offset");
2224 vtm.utc_offset = Qnil;
2232 vtm.utc_offset = utc_offset_arg(arg);
2243 if (!NIL_P(vtm.utc_offset)) {
2244 VALUE off = vtm.utc_offset;
2246 vtm.utc_offset = Qnil;
2260 * Time.new(year, month=nil, day=nil, hour=nil, min=nil, sec=nil, utc_offset=nil) -> time
2274 * +utc_offset+ is the offset from UTC.
2677 validate_utc_offset(VALUE utc_offset)
2679 if (le(utc_offset, INT2FIX(-86400)) || ge(utc_offset, INT2FIX(86400)))
2680 rb_raise(rb_eArgError, "utc_offset out of range");
2681 return utc_offset;
2701 || (!NIL_P(vtm->utc_offset) && (validate_utc_offset(vtm->utc_offset), 0)))
2717 vtm->utc_offset = Qnil;
3533 * time.localtime(utc_offset) -> time
3538 * If +utc_offset+ is given, it is used instead of the local time.
3626 off = tobj->vtm.utc_offset;
3644 * time.getlocal(utc_offset) -> new_time
3649 * If +utc_offset+ is given, it is used instead of the local time.
3769 VALUE off = tobj->vtm.utc_offset;
4297 * time.utc_offset -> fixnum
4320 return tobj->vtm.utc_offset;
4841 vtm.utc_offset = INT2FIX(0);
5070 rb_define_method(rb_cTime, "utc_offset", time_utc_offset, 0);