Repository navigation
GetTimestampTime
imshooter edited this page Nov 26, 2026
·
1 revision
The time of day of a time.
native bool:GetTimestampTime(Timestamp:timestamp, &hour, &minute, &second, const zone[] = "");| Parameter | Description |
|---|---|
Timestamp:timestamp |
The time. |
&hour |
The hour, 0 to 23. |
&minute |
The minute. |
&second |
The second. |
const zone[] |
The time zone, as "UTC", or the zone of the server when left out. |
-
truewhen it was read. -
falsewhen there is no such zone.
stock bool:IsNight() {
new
hour,
minute,
second
;
GetTimestampTime(Now(), hour, minute, second);
return hour >= 22 || hour < 6;
}- GetTimestampDate: The date of a time.
- GetTimestampWeekday: The day of the week of a time.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions