Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10369 (closed enhancement: fixed)

Opened 9 months ago

Last modified 8 months ago

[PATCH][DOCS] Documentation for DateTime Formatting

Reported by: revans Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveSupport Version: edge
Severity: normal Keywords: docs
Cc:

Description

Added documentation for DateTime Coversions, giving examples of how to format an instance of datetime as well as the xmlschema method.

Attachments

documentation_for_datetime_formatting.patch (1.7 kB) - added by revans on 12/05/07 07:32:52.
documentation_for_datetime_formatting_fixed_type.patch (1.7 kB) - added by revans on 12/05/07 07:34:41.
documentation_for_datetime_formatting_follow_time_date.patch (1.7 kB) - added by revans on 12/05/07 07:37:51.
documentation_for_datetime_formatting_follow_time_date.2.patch (1.7 kB) - added by revans on 12/05/07 08:03:25.
documentation_for_datetime_formatting.2.patch (1.7 kB) - added by revans on 12/05/07 08:04:30.

Change History

12/05/07 07:32:52 changed by revans

  • attachment documentation_for_datetime_formatting.patch added.

12/05/07 07:34:41 changed by revans

  • attachment documentation_for_datetime_formatting_fixed_type.patch added.

12/05/07 07:35:07 changed by revans

fixed typo

12/05/07 07:37:51 changed by revans

  • attachment documentation_for_datetime_formatting_follow_time_date.patch added.

12/05/07 07:38:39 changed by revans

change some of the doc. to be consistent with Time and Date documentation of to string formatting

12/05/07 07:41:23 changed by chuyeow

  • keywords set to docs.

+1. Looks good.

It's a nitpick but the indentation for

datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0)   # => "Tue, 04 Dec 2007 00:00:00 +0000"

is off and there should be no quotes around the "Tue, 04 Dec 2007 00:00:00 +0000".

12/05/07 08:03:25 changed by revans

  • attachment documentation_for_datetime_formatting_follow_time_date.2.patch added.

12/05/07 08:04:30 changed by revans

  • attachment documentation_for_datetime_formatting.2.patch added.

12/05/07 08:05:32 changed by revans

@chuyeow: thanks for catching that. Quotes removed and indentation fixed ;)

12/06/07 08:09:48 changed by revans

  • summary changed from Documentation for DateTime Formatting to [PATCH][DOCS] Documentation for DateTime Formatting.

12/17/07 00:18:31 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [8428]) Docfix (closes #10369) [revans]