-
Notifications
You must be signed in to change notification settings - Fork 0
datetime
sanya_fritz edited this page Apr 20, 2024
·
1 revision
This library provides classes and functions for working with date and time.
Represents a date and time.
-
DateTime(int year, int month, int day, int hour, int minute, int second): Constructs aDateTimeobject with the specified year, month, day, hour, minute, and second. -
DateTime(const ponystring& datetimeStr): Constructs aDateTimeobject from a string representation in the format "YYYY-MM-DD HH:MM:SS".
-
ponystring toString(): Converts theDateTimeobject to a string representation in the format "YYYY-MM-DD HH:MM:SS".
-
DateTime now(): Returns the current date and time. -
DateTime today(): Returns the current date with the time set to midnight.