Method: Time.mktime

Defined in:
time.c

.local(year) ⇒ Time .local(year, month) ⇒ Time .local(year, month, day) ⇒ Time .local(year, month, day, hour) ⇒ Time .local(year, month, day, hour, min) ⇒ Time .local(year, month, day, hour, min, sec_with_frac) ⇒ Time .local(year, month, day, hour, min, sec, usec_with_frac) ⇒ Time .local(sec, min, hour, day, month, year, dummy, dummy, isdst, dummy) ⇒ Time .mktime(year) ⇒ Time .mktime(year, month) ⇒ Time .mktime(year, month, day) ⇒ Time .mktime(year, month, day, hour) ⇒ Time .mktime(year, month, day, hour, min) ⇒ Time .mktime(year, month, day, hour, min, sec_with_frac) ⇒ Time .mktime(year, month, day, hour, min, sec, usec_with_frac) ⇒ Time .mktime(sec, min, hour, day, month, year, dummy, dummy, isdst, dummy) ⇒ Time

Same as Time.utc, but interprets the values in the local time zone.

Time.local(2000,"jan",1,20,15,1)   #=> 2000-01-01 20:15:01 -0600

Overloads:

  • .local(year) ⇒ Time

    Returns:

  • .local(year, month) ⇒ Time

    Returns:

  • .local(year, month, day) ⇒ Time

    Returns:

  • .local(year, month, day, hour) ⇒ Time

    Returns:

  • .local(year, month, day, hour, min) ⇒ Time

    Returns:

  • .local(year, month, day, hour, min, sec_with_frac) ⇒ Time

    Returns:

  • .local(year, month, day, hour, min, sec, usec_with_frac) ⇒ Time

    Returns:

  • .local(sec, min, hour, day, month, year, dummy, dummy, isdst, dummy) ⇒ Time

    Returns:

  • .mktime(year) ⇒ Time

    Returns:

  • .mktime(year, month) ⇒ Time

    Returns:

  • .mktime(year, month, day) ⇒ Time

    Returns:

  • .mktime(year, month, day, hour) ⇒ Time

    Returns:

  • .mktime(year, month, day, hour, min) ⇒ Time

    Returns:

  • .mktime(year, month, day, hour, min, sec_with_frac) ⇒ Time

    Returns:

  • .mktime(year, month, day, hour, min, sec, usec_with_frac) ⇒ Time

    Returns:

  • .mktime(sec, min, hour, day, month, year, dummy, dummy, isdst, dummy) ⇒ Time

    Returns:



3527
3528
3529
3530
3531
3532
3533
3534
# File 'time.c', line 3527

static VALUE
time_s_mktime(int argc, VALUE *argv, VALUE klass)
{
    struct vtm vtm;

    time_arg(argc, argv, &vtm);
    return time_localtime(time_new_timew(klass, timelocalw(&vtm)));
}