Skip to content

Commit

Permalink
[Instant] Add Instant.pod
Browse files Browse the repository at this point in the history
Just some basic information on Instants, what I could gather from S02
and S32::Temporal.
  • Loading branch information
ShimmerFairy committed Jul 9, 2012
1 parent 02b6d4e commit 60a108d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Instant.pod
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
=begin pod
=TITLE Instant
class Instant is Cool does Real { }
An C<Instant> is a particular moment in time measured in atomic seconds, with
fractions. It is not tied to or aware of any epoch.
An C<Instant> can be used to create a C<DateTime> object set to that
C<Instant>. The pseudo-constant C<now> returns the current time as an
C<Instant>.
Basic math is defined for C<Instant>s (as well as C<Duration>s). Adding an
C<Instant> to a C<Duration> returns another Instant. Subtracting two C<Instant>s
will yield a C<Duration>. Adding two C<Instant>s is explicitly disallowed. All
other operations with Instants are undefined.
=end pod

0 comments on commit 60a108d

Please sign in to comment.