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.
							
						Struct std.datetime.date.TimeOfDay
Represents a time of day with hours, minutes, and seconds. It uses 24 hour time.
						
				struct TimeOfDay
				;
						
					
				Constructors
| Name | Description | 
|---|---|
| this | 
Properties
| Name | Type | Description | 
|---|---|---|
| hour[get] | ubyte | Hours past midnight. | 
| hour[set] | int | Hours past midnight. | 
| max[get] | TimeOfDay | Returns one second short of midnight. | 
| min[get] | TimeOfDay | Returns midnight. | 
| minute[get] | ubyte | Minutes past the hour. | 
| minute[set] | int | Minutes past the hour. | 
| second[get] | ubyte | Seconds past the minute. | 
| second[set] | int | Seconds past the minute. | 
Methods
| Name | Description | 
|---|---|
| fromISOExtString | Creates a TimeOfDayfrom a string with the format HH:MM:SS.
        Whitespace is stripped from the given string. | 
| fromISOString | Creates a TimeOfDayfrom a string with the format HHMMSS.
        Whitespace is stripped from the given string. | 
| opBinary | Gives the result of adding or subtracting a Durationfrom thisTimeOfDay. | 
| opBinary | Gives the difference between two TimeOfDays. | 
| opCmp | Compares this TimeOfDaywith the givenTimeOfDay. | 
| opOpAssign | Gives the result of adding or subtracting a Durationfrom thisTimeOfDay, as well as assigning the result to thisTimeOfDay. | 
| roll | Adds the given number of units to this TimeOfDay. A negative
        number will subtract. | 
| toISOExtString | Converts this TimeOfDayto a string with the formatHH:MM:SS.
        Ifwriteris set, the resulting string will be written directly to it. | 
| toISOString | Converts this TimeOfDayto a string with the formatHHMMSS.
        Ifwriteris set, the resulting string will be written directly to it. | 
| toString | Converts this TimeOfDay to a string. | 
Example
import coreAuthors
License
					Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.