Date

date e$B$K0J2<$N$h$&$JJQ99$r$7$^$9!"$?$V$s!#e(B

  • parse

e$BG/F|IUe(B (e$BNce(B: 2006-333, 2006333 06333) e$B$dNq=5F|IUe(B
(e$BNce(B: 2006-W15-5,
2006W155 06W155) e$B$GF|IU$,:n$l$^$9!#e(B

‘GMT Standard Time’ e$B$N$h$&$J%?%$%`%>!<%sL>$r=&$$$^$9!#e(B
‘Mexico Standard Time 2’ e$B$N$h$&$J$b$N$O%@%a$G$9!#e(B

‘GMT+09’e$B!"e(B’-3’e$B!"e(B’-3.5’ e$B$N$h$&$J;~:9$b=&$$$^$9e(B
(e$B$=$l$>$le(B +09:00e$B!"e(B-03:00e$B!"e(B
-03:30 e$B$HEy2Ae(B)e$B!#e(B+091234 e$B$de(B +09:12:34
e$B$b<u$1$H$j$^$9!#e(B

e$B$3$l$^$G!"e(B’GMT+09’

e$B$N$h$&$J;~:9$r=&$o$J$+$C$?$N$O!“2r<a$,$U$?$D$”$je(B

e$B$($k$+$i$G$9!#e(BPOSIX

[email protected]>$,@5$G$9$,!"$7$+$7!"$3$NI=8=$O>o<1E*$G$O$J$$e(B

e$B$H;W$&$N$G!"[email protected]$j<N$F$k$3$H$K$7$^$7$?!#e(B

‘1 pm’ e$B$N$h$&$JJ,$N$J$$;~9o$b=&$$$^$9!#e(B

e$BF|$N$J$$G/7n$N$_$N7A<0$O4pK\E*$K$"$D$+$o$J$$J}?K$G$7$?$,!“e(B’Sept
2000’
e$B$h$&$J$b$N$J$I!”$$$/$D$+$O<u$1$D$1$k$D$b$j$G$9!#e(B

‘09’ e$B$,e(B 9e$BF|e(B e$B$HG’<1$5$l$^$9!#e(B

‘10.9.2000’
e$B$N$h$&$J%I%C%[email protected]$C$?F|IU$b=&$&$+$b$7$l$^$;$s!#$"$D$+$$e(B
e$B$Oe(B / e$B$HF1$8!#e(B

e$BF|K\8l$NF|IU$,DL$k$3$H$,$"$j$^$9!#e(B

parse e$B$O0J2<$N$h$&$JF|IU$b<u$1$H$l$k$h$&$K$J$j$^$9!#e(B

‘jan 2 3 am +4 5’
‘fri1feb3bc4pm+5’
[email protected]/e(B8e$B7ne(B8e$BF|e(B (e$B2Pe(B)
e$B8a8ee(B2e$B;~e(B30e$BJ,e(B59.5e$BICe(B’

  • str[fp]time

str[fp]time e$B$K;XDj;Re(B %Le$B!"e(B%Ne$B!"e(B%Q e$B$rDI2C$7$^$9!#e(B

strptime e$B$G!"e(B%se$B!"e(B%Qe$B!"G/F|IUe(B: %Y-%je$B!"Nq=5e(B:
%G-%V-%u e$B$J$I$r$D$+$C$FF|IUe(B
e$B$,$D$/$l$^$9!#e(B%Y-%[UW]-%[uw] e$B$NAH$_9g$;$G$b$D$/$l$^$9!#e(B

parse e$B$HF1MM$K!"e(B’GMT Standard Time’e$B!"e(B’-3’e$B!"e(B’-3.5’
e$B$N$h$&$J%?%$%`%>!<%s!"e(B
e$B;~:9$r<u$1$D$1$^$9!#e(B

strptime e$B$Oe(B strftime e$B$N7A<0$r$h$jB:=E$7$^$9!#$?$H$($P!“e(B%j
e$B$O?t;z$re(B3e$B7ee(B
e$B0J>eFI$`$3$H$O$”$j$^$;$s!#e(B%Y
e$B$O4pK\E*$K9b!9e(B4e$B7e$V$s$7$+FI$_$^$;$s$,!"$De(B
e$B$.$K4|BT$5$l$k%Q%?!<%s$,?tCM$G$J$$$HH=CG$G$-$l$P!"@)8B$5$l$^$;$s!#0J2<e(B
e$B$N$h$&$J>[email protected]$7$^$9!#e(B

_strptime(‘20060808’, ‘%Y%m%d’)
_strptime(‘92006-08-08’, ‘%Y-%m-%d’)
_strptime(‘friaug’, ‘%a%b’)

strftime e$B$G!"e(BGNU e$B$N$b$N$HF1MM$N%U%i%0e(B [-_0^#]
e$B$HI};XDj$r$D$+$($k$h$&$Ke(B
e$B$9$k$+$b$7$l$^$;$s!#e(Bstrptime
e$B$KAjEv$N;E3]$rMQ0U$9$k$D$b$j$O$^$C$?$/$"e(B
e$B$j$^$;$s!#e(B

strptime e$B$O0J2<$N$h$&$JF|IU$b<u$1$H$l$k$h$&$K$J$j$^$9!#e(B

strptime(‘fri1feb034pm+5’,’%a%d%b%y%H%p%Z’)

  • e$B%a%=%C%I$NDI2Ce(B

{prev,next}_{year,day} e$B$r2C$($h$&$+$H;W$$$^$9!#e(Bnext_day
e$B$O!"0z?t$,$J$$e(B
e$B>l9g$O!“0JA0$+$i$”$ke(B next e$B$HF1$8$G$9!#e(B

1.9 e$B$G!"$$$D$N$^$K$+e(B min e$B$Ke(B minute
e$B$r$$$&JLL>$,$D$1$i$l$F$$$?$N$G$9$,!“e(B
Date e$B$G$Oe(B min e$B$O$D$+$($J$$$N$K!“e(Bminute
e$B$H$7$F;2>H$G$-$k!”$H$$$&$*$+$7e(B
e$B$J$3$H$K$J$C$F$$$?$N$G!”:o=|$7$F$$$^$7$?!#$b$7!“e(Bminute e$B$de(B
second e$B$,$”$Ce(B
e$B$?$[$&$,$$$$!"$H$$$&$3$H$G$"$l$P!"$"$i$?$a$FMQ0U$7$^$9!#e(B

e$B$"$^$j$D$+$o$l$F$$$J$$$H;W$$$^$9$,!“e(Bos?e$B!“e(Bns?
e$B$O!”$d$O$j$”$^$j$h$/$J$$e(B
e$BL>A0$J$N$G$O$J$$$+!"$H$$$&$3$H$G!"Be$j$Ke(B julian?e$B!"e(Bgregorian?
e$B$rMQ0U$7e(B
e$B$h$&$H;W$$$^$9!#>-MhE*$K!"e(Bos?e$B!"e(Bns? e$B$OGQ;_$NJ}8~$G!#e(B

e$B$"$^[email protected]$H;W$$$^$9$,!"?7Nq$N3+;OF|$N;XDj$G!"??56CMe(B
e$B$r$D$+$o$J$$$h$&$7$F$$$-$?$$$H;W$$$^$9!#:#8e$O!"e(BDate::JULIANe$B!"e(B
Date::GREGORIAN e$B$r$D$+$&$h$&4+$a$^$9!#e(B

  • 1.8 e$B$He(B 1.9 e$B$N0c$$e(B

parse
e$B$GF|K\8l$NF|IU$rDL$9!"$H$$$&$N$O!":G=E$K$O>[email protected]$,9b$$$H;We(B
e$B$$$^$9$,!"J86g$,$J$1$l$P!"e(B1.9 e$B$KF~$l$k$D$b$j$G$9!#e(B1.8
e$B$K$OF~$l$^$;$s!#e(B
e$B$^$C$?$/$N?75,$N%a%=%C%I$O!“e(B1.8 e$BF~$l$k$D$b$j$O$”$j$^$;$s!#e(B

e$B$A$J$$K!":#8=:$Ne(B 1.8 e$B$He(B 1.9 e$B$N0c$$$O!"e(B

{Time,Date,DateTime}#to_{time,date,datetime} e$B$NDI2C!#e(B
{next,prev}_month e$B$NDI2C!#e(B
sunday? e$B$J$I=R8l$NDI2C!#e(B
e$B$$$D$N$^$K$+e(B parsedate.rb e$B$Ke(B strptime e$B$,$"$k!#e(B
– e$B$3$3$Ke(B strptime e$B$OI,MWe(B?
– e$B%(%i!<%a%C%;!<%8$,$*$+$7$$!#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