-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just some basic information on Instants, what I could gather from S02 and S32::Temporal.
- Loading branch information
1 parent
02b6d4e
commit 60a108d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |