Repository navigation
GetTimestampWeekday
imshooter edited this page Nov 26, 2026
·
1 revision
The day of the week of a time.
native GetTimestampWeekday(Timestamp:timestamp, const zone[] = "");| Parameter | Description |
|---|---|
Timestamp:timestamp |
The time. |
const zone[] |
The time zone, as "UTC", or the zone of the server when left out. |
0 for Sunday to 6 for Saturday, or -1 when there is no such zone.
stock bool:IsWeekend() {
new const
weekday = GetTimestampWeekday(Now())
;
return weekday == 0 || weekday == 6;
}- GetTimestampDate: The date of a time.
- GetTimestampTime: The time of day of a time.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions