View source code
					
 Display the source code in std/datetime.d from which this page was generated on
 github.
					
				
				
 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.
					
				
				
 Page wiki
					
 View or edit the community-maintained wiki page associated with this page.
					
				
			
			std.datetime.date.month  - multiple declarations
			- Function Date.month
- Function Date.month
Function Date.month
        Month of a Gregorian Year.
Prototype
void month( Month month ) pure @property @safe;
Parameters
| Name | Description | 
|---|---|
| month | The monthto set thisDate'smonthto. | 
Throws
            DateTimeException if the given month is not a valid month or if
            the current day would not be valid in the given month.
Function Date.month
        Month of a Gregorian Year.
Prototype
Month month() pure nothrow @property @safe const;
Example
assert(Date(1999, 7, 6).month == 7); assert(Date(2010, 10, 4).month == 10); assert(Date(-7, 4, 5).month == 4);
Authors
Jonathan M Davis and Kato Shoichi