Repository navigation
GetTimestampDate
imshooter edited this page Nov 26, 2026
·
1 revision
The date of a time.
native bool:GetTimestampDate(Timestamp:timestamp, &year, &month, &day, const zone[] = "");| Parameter | Description |
|---|---|
Timestamp:timestamp |
The time. |
&year |
The year. |
&month |
The month, 1 to 12. |
&day |
The day of the month. |
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:IsNewYearsDay() {
new
year,
month,
day
;
GetTimestampDate(Now(), year, month, day);
return month == 1 && day == 1;
}- GetTimestampTime: The time of day of a time.
- GetTimestampWeekday: The day of the week of a time.
- MakeTimestamp: The time of a date.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions