Time.mktime

1.8 e$B$Ge(B Time.mktime(2001,2,3,24)
[email protected]%(%i!<$G$9$,!"e(B1.9 e$B$G$O0c$&e(B
e$B$h$&$G$9!#e(B24e$B;[email protected]$C$?$N$+$b$7$l$^$;$s$,!"7k6I%(%i!<$K$J$C$F$7e(B
e$B$^$$$^$9!#e(B

$ ruby19 -v -e ‘Time.mktime(2001,2,3,24)’
ruby 1.9.0 (2008-01-12 revision 0) [i386-freebsd6.2]
-e:1:in mktime': couldn't generate a time (ArgumentError) from -e:1:in

$ ruby18 -v -e ‘Time.mktime(2001,2,3,24)’
ruby 1.8.6 (2008-01-11 patchlevel 5000) [i386-freebsd6.2]
-e:1:in `mktime’: argument out of range (ArgumentError)
from -e:1

1.9 e$B$G$bDL>o$O!"HO0O30%(%i!<$G$9$h$M!#e(B

$ ruby19 -v -e ‘Time.mktime(2001,13)’
ruby 1.9.0 (2008-01-12 revision 0) [i386-freebsd6.2]
-e:1:in mktime': argument out of range (ArgumentError) from -e:1:in

In article [email protected],
Tadayoshi F. [email protected] writes:

1.8 e$B$Ge(B Time.mktime(2001,2,3,24) [email protected]%(%i!<$G$9$,!"e(B1.9 e$B$G$O0c$&e(B
e$B$h$&$G$9!#e(B24e$B;[email protected]$C$?$N$+$b$7$l$^$;$s$,!"7k6I%(%i!<$K$J$C$F$7e(B
e$B$^$$$^$9!#e(B

[ruby-core:14517] e$B$+$i$N%9%l%C%I$Ge(B mktime e$B$N7k2L$re(B localtime
e$B$7$Fe(B round trip e$B$9$k8!::$rF~$l$?$;$$$G$9$M!#e(B

e$B$3$l$G%(%i!<$K$7$F$$$$$+5?Ld$N$D$$$?;~9o$O0J2<$Ne(B 3e$B<oN`$K$J$je(B
e$B$^$7$?!#e(B

  • 2005-02-29 e$B$H$+B8:_$7$J$$F|IUe(B
  • TZ=EST5EDT e$B$G$Ne(B 2007-03-11 02:00:00 e$B$J$I$NB8:_$7$J$$;~9oe(B
  • 2001-02-03 24:00:00 e$B$H$+e(B 24:00:00

e$B$d$C$Qe(B round trip e$B$J8!::$O87$7$9$.$k$+$J$!!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:33081] Re: Time.mktime”
on Mon, 14 Jan 2008 00:40:16 +0900, Tanaka A. [email protected]
writes:

|[ruby-core:14517] e$B$+$i$N%9%l%C%I$Ge(B mktime e$B$N7k2L$re(B localtime
|e$B$7$Fe(B round trip e$B$9$k8!::$rF~$l$?$;$$$G$9$M!#e(B

|e$B$d$C$Qe(B round trip e$B$J8!::$O87$7$9$.$k$+$J$!!#e(B

e$B$=$s$J5$$,$7$^$9!#$J$s$+HO0O30$G$bNI$-$K7W$i$C$F$/$l$?J}$,e(B
Rubye$BE*$J0u>]$,$"$j$^$9$7!#e(B

e$B$d$C$Qe(B round trip e$B$J8!::$O87$7$9$.$k$+$J$!!#e(B

e$B$3$lKx$N$h$&$K>!<[email protected],2=$9$k$3$H<+BN$O!"NI$$$+0-$$$+9M$($+$?<[email protected]$He(B
e$B;W$&$s$G$9$,!“MxMQ<T$,A[Dj$7$K$/$$%(%i!<$O$”$j$=$&$G$9$M!#e(B

e$BIi$N1<IC$r4*Dj$7$J$+$C$?F|IU$r1<IC$r9MN8$9$k%7%9%F%$GFI$$H%(%i!<$K$J$Ce(B
e$B$?$j$7$^$9$+$M!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs