View source code
Display the source code in std/datetime/date.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
std.datetime.date.Date.month
- multiple declarations
Function Date.month
Month of a Gregorian Year.
Example
writeln(Date(1999, 7, 6) .month); // 7
writeln(Date(2010, 10, 4) .month); // 10
writeln(Date(-7, 4, 5) .month); // 4
Function Date.month
Month of a Gregorian Year.
Parameters
Name | Description |
---|---|
month | The month to set this Date 's month to. |
Throws
DateTimeException
if the given month is
not a valid month or if the current day would not be valid in the
given month.
Authors
License
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.