Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdavis committed Jul 22, 2011
1 parent d3c21c6 commit 70916dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/core/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ assert(dur!"weeks"(12).weeks == 12);
assert(dur!"days"(13).weeks == 1);
--------------------
+/
@property auto weeks() const pure nothrow { return get!"weeks"(); }
@property long weeks() const pure nothrow { return get!"weeks"(); }

unittest
{
Expand All @@ -770,7 +770,7 @@ assert(dur!"days"(13).days == 6);
assert(dur!"hours"(49).days == 2);
--------------------
+/
@property auto days() const pure nothrow { return get!"days"(); }
@property long days() const pure nothrow { return get!"days"(); }

unittest
{
Expand Down Expand Up @@ -798,7 +798,7 @@ assert(dur!"hours"(49).hours == 1);
assert(dur!"minutes"(121).hours == 2);
--------------------
+/
@property auto hours() const pure nothrow { return get!"hours"(); }
@property long hours() const pure nothrow { return get!"hours"(); }

unittest
{
Expand Down Expand Up @@ -826,7 +826,7 @@ assert(dur!"minutes"(127).minutes == 7);
assert(dur!"seconds"(121).minutes == 2);
--------------------
+/
@property auto minutes() const pure nothrow { return get!"minutes"(); }
@property long minutes() const pure nothrow { return get!"minutes"(); }

unittest
{
Expand Down Expand Up @@ -854,7 +854,7 @@ assert(dur!"seconds"(127).seconds == 7);
assert(dur!"msecs"(1217).seconds == 1);
--------------------
+/
@property auto seconds() const pure nothrow { return get!"seconds"(); }
@property long seconds() const pure nothrow { return get!"seconds"(); }

unittest
{
Expand Down Expand Up @@ -1371,7 +1371,7 @@ struct TickDuration
/++
Alias for converting TickDuration to seconds.
+/
@property auto seconds() const pure nothrow { return to!("seconds", long)(); }
@property long seconds() const pure nothrow { return to!("seconds", long)(); }

unittest
{
Expand All @@ -1394,27 +1394,27 @@ struct TickDuration
/++
Alias for converting TickDuration to milliseconds.
+/
@property auto msecs() const pure nothrow { return to!("msecs", long)(); }
@property long msecs() const pure nothrow { return to!("msecs", long)(); }


/++
Alias for converting TickDuration to microseconds.
+/


@property auto usecs() const pure nothrow { return to!("usecs", long)(); }
@property long usecs() const pure nothrow { return to!("usecs", long)(); }


/++
Alias for converting TickDuration to hecto-nanoseconds (100 ns).
+/
@property auto hnsecs() const pure nothrow { return to!("hnsecs", long)(); }
@property long hnsecs() const pure nothrow { return to!("hnsecs", long)(); }


/++
Alias for converting TickDuration to nanoseconds.
+/
@property auto nsecs() const pure nothrow { return to!("nsecs", long)(); }
@property long nsecs() const pure nothrow { return to!("nsecs", long)(); }


/++
Expand Down

0 comments on commit 70916dc

Please sign in to comment.