APIdock
/
Ruby
/
Browse
About
method
to_datetime
v2_6_3
-
Show latest stable
- Class:
DateTime
to_datetime
()
public
Returns self.
Show source
static VALUE datetime_to_datetime(VALUE self) { return self; }
Related methods
Instance methods
as_json
hour
iso8601
jisx0301
min
minute
new_offset
offset
rfc3339
sec
sec_fraction
second
second_fraction
strftime
to_date
to_datetime
to_json
to_s
to_time
xmlschema
zone
Class methods
_strptime
civil
commercial
httpdate
iso8601
jd
jisx0301
json_create
new
now
nth_kday
ordinal
parse
rfc2822
rfc3339
rfc822
strptime
weeknum
xmlschema