Create a string formatter that uses format specifiers compatible with PHP's [gm]date() functions. #14

Closed
jmalloc opened this Issue Jan 22, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@jmalloc
Owner

jmalloc commented Jan 22, 2013

No description provided.

@jmalloc

This comment has been minimized.

Show comment Hide comment
@jmalloc

jmalloc Jan 23, 2013

Owner

"e" (timezone Identifier - UTC, GMT, etc) and "T" (timezone abbreviation - EST, MDT, etc) are not currently supported because chrono timezones don't have name data yet - this might be something for 0.3.0.

Owner

jmalloc commented Jan 23, 2013

"e" (timezone Identifier - UTC, GMT, etc) and "T" (timezone abbreviation - EST, MDT, etc) are not currently supported because chrono timezones don't have name data yet - this might be something for 0.3.0.

@ghost ghost assigned jmalloc Jan 23, 2013

@jmalloc

This comment has been minimized.

Show comment Hide comment
@jmalloc

jmalloc Jan 23, 2013

Owner

Formatting a Date should support all of the same options as a DateTime (ie, H:i:s would produce 00:00:00), as they are both TimePoints, however formatting Time and TimeZone should only support the components directly provided by those classes (ie, Y-m-d for a Time will produce the literal "Y-m-d").

Owner

jmalloc commented Jan 23, 2013

Formatting a Date should support all of the same options as a DateTime (ie, H:i:s would produce 00:00:00), as they are both TimePoints, however formatting Time and TimeZone should only support the components directly provided by those classes (ie, Y-m-d for a Time will produce the literal "Y-m-d").

@jmalloc

This comment has been minimized.

Show comment Hide comment
@jmalloc

jmalloc Jan 23, 2013

Owner

Notes for escaping:

  • Escaping non-special characters is allowed? (must be consistent with [gm]date()).
  • Don't forget to escape backslashes.
  • Resolve escaped, non-special characters when formatting.
Owner

jmalloc commented Jan 23, 2013

Notes for escaping:

  • Escaping non-special characters is allowed? (must be consistent with [gm]date()).
  • Don't forget to escape backslashes.
  • Resolve escaped, non-special characters when formatting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment