Time¶
| Spice | |
|---|---|
Functions¶
getCurrentSecs¶
| Spice | |
|---|---|
Retrieve seconds since epoch
Returns: long
getCurrentMillis¶
| Spice | |
|---|---|
Retrieve milliseconds since epoch
Returns: long
getCurrentMicros¶
| Spice | |
|---|---|
Retrieve microseconds since epoch
Returns: long
isLeapYear¶
| Spice | |
|---|---|
Check whether a given year is a leap year (Gregorian calendar)
Parameters
| Name | Type | Description |
|---|---|---|
year |
int |
Returns: bool
getCurrentYear¶
| Spice | |
|---|---|
Return the current UTC year in a fully cross-platform way
Returns: int