License:
Version:
Author:
Note:
Example:
1 2 3 | Time start = Clock.now; Thread.sleep(0.150); Stdout.formatln("slept for {} ms", (Clock.now-start).millis); |
See Also:
Parameters:
t | A TimeSpan value to add |
Returns:
Parameters:
t | A TimeSpan value to add |
Returns:
Parameters:
t | A TimeSpan to subtract |
Returns:
Parameters:
t | A TimeSpan to subtract |
Returns:
Parameters:
v | A multiplier to use for scaling this time span. |
Returns:
Parameters:
v | A multipler to use for scaling |
Returns:
Parameters:
v | A divisor to use for scaling this time span. |
Returns:
Parameters:
v | A multipler to use for dividing |
Returns:
Parameters:
t | A divisor used for dividing |
Returns:
Returns:
Note:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Note:
Returns:
Returns:
Note:
Parameters:
value | The number of nanoseconds. |
Returns:
Parameters:
value | The number of microseconds. |
Returns:
Parameters:
value | The number of milliseconds. |
Returns:
Parameters:
value | The number of seconds. |
Returns:
Parameters:
value | The number of minutes. |
Returns:
Parameters:
value | The number of hours. |
Returns:
Parameters:
value | The number of days. |
Returns:
Parameters:
value | The interval to convert in seconds. |
Returns:
Remarks:
writing:
Returns:
Parameters:
value | A Time _value. |
Returns:
Parameters:
t | A TimeSpan value. |
Returns:
Parameters:
t | A TimeSpan value. |
Returns:
Parameters:
t | A TimeSpan value. |
Returns:
Parameters:
t | A Time value. |
Returns:
Parameters:
t | A TimeSpan value. |
Returns:
Returns:
Returns:
Returns:
Returns:
1 2 3 4 5 | auto time = Clock.now.time; assert (time.millis < 1000); assert (time.seconds < 60); assert (time.minutes < 60); assert (time.hours < 24); |
Parameters:
hours | number of hours since midnight |
minutes | number of minutes into the hour |
seconds | number of seconds into the minute |
millis | number of milliseconds into the second |
Returns:
Note:
example:
Parameters:
ticks | ticks representing a Time value. This is normalized so that it represent a time of day (modulo-24 etc) |
Returns:
Returns:
Note: