Ruby DateTime Functions
EditRocket provides the following information on DateTime functions in the Ruby source code builder.
civil(y=-4712, m=1, d=1, h=0, min=0, s=0, of=0, sg=ITALY) - Create a new DateTime object corresponding to the specified Civil Date and hour h, minute min, second s.
commercial(y=1582, w=41, d=5, h=0, min=0, s=0, of=0, sg=ITALY) - Create a new DateTime object corresponding to the specified Commercial Date and hour h, minute min, second s.
jd(jd=0, h=0, min=0, s=0, of=0, sg=ITALY) - Create a new DateTime object corresponding to the specified Julian Day Number jd and hour h, minute min, second s.
new -
ordinal(y=-4712, d=1, h=0, min=0, s=0, of=0, sg=ITALY) - Create a new DateTime object corresponding to the specified Ordinal Date and hour h, minute min, second s.
parse(str='-4712-01-01T00:00:00+00:00', comp=false, sg=ITALY) - Create a new DateTime object by parsing from a String, without specifying the format.
strftime(fmt='%FT%T%:z') -
strptime(str='-4712-01-01T00:00:00+00:00', fmt='%FT%T%z', sg=ITALY) - Create a new DateTime object by parsing from a String according to a specified format.