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

Commit

Permalink
core.time: Add some comments/documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Oct 2, 2015
1 parent 9575940 commit 512399d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/core/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,12 @@ public:
}


// Note: opBinary!"*" and opBinary!"/" have to be implemented separately
// because opBinary!"/" may throw TimeException, and opBinary!"*" is nothrow

/++
Multiplies the duration by an integer value.
The legal types of arithmetic for $(D Duration) using this operator
overload are
Expand Down Expand Up @@ -793,6 +798,9 @@ public:


/++
Multiplies the duration by an integer value as well as
assigning the result to this $(D Duration).
The legal types of arithmetic for $(D Duration) using this operator
overload are
Expand Down Expand Up @@ -845,6 +853,8 @@ public:


/++
Divides the duration by an integer value.
The legal types of arithmetic for $(D Duration) using this operator
overload are
Expand Down Expand Up @@ -896,6 +906,9 @@ public:


/++
Divides the duration by an integer value as well as
assigning the result to this $(D Duration).
The legal types of arithmetic for $(D Duration) using this operator
overload are
Expand Down

0 comments on commit 512399d

Please sign in to comment.