Skip to content

Commit

Permalink
more details
Browse files Browse the repository at this point in the history
  • Loading branch information
apeiros committed Aug 24, 2008
1 parent 8c4283f commit cb00900
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rdoc
Expand Up @@ -85,10 +85,12 @@ origin is defined to be backdated gregorian datetime 0000-01-01T00:00:00Z. The u
the distance from this origin is days+picoseconds, where 8.64e16 picoseconds is 1 day.
The calendar specific classes then can represent that date/time in the units defined for that
calendar, such as gregorian can represent that distance from origin as
year-month-day"T"hour:minute:second.fraction±timezone-offset.
year-month-day"T"hour:minute:second.fraction±offset.
Timezone and DST are only representational offsets on top of that distance. That means that
2008-01-01T12:00Z and 2008-01-01T14:00+02:00 have the same distance, but are represented
differently due to the different offset. Just as "May" (english) and "Mai" (german) are
different representations of the same month.
So Datetime and all its subclasses store date and time without representational offsets, those
are only respected when accessing calendary-specific values, such as month, day, hour etc.

== LINKS

0 comments on commit cb00900

Please sign in to comment.