APIdock
/
Ruby
/
Browse
About
method
to_datetime
v2_4_6
-
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
iso8601
jisx0301
rfc3339
strftime
to_date
to_datetime
to_json
to_s
to_time
xmlschema
Class methods
_strptime
civil
commercial
httpdate
iso8601
jd
jisx0301
json_create
new
now
ordinal
parse
rfc2822
rfc3339
rfc822
strptime
xmlschema