|
hoshi-lang dev
Yet another programming language
|

Go to the source code of this file.
Functions | |
| long | get_tm_gmtoff (struct tm *t) |
| YoiIntAndIntObject * | runtime_time_now () |
| Return the current time as a YoiIntAndIntObject. | |
| void | runtime_time_sleep (int64_t seconds, int64_t nanoseconds) |
| Sleep for a given number of seconds. | |
| char * | runtime_time_strftime (const char *format, int64_t timestamp) |
| Convert a timestamp to a string according to a given format. | |
| int64_t | runtime_time_localtimezone_offset () |
| Get the local timezone offset in seconds. | |
| YoiIntAndIntObject * | runtime_time_monotonic_now () |
| Get the current monotonic time as a YoiIntAndIntObject. | |
| void | runtime_time_finalize (void *memory) |
| Finalize the memory created by the time module. | |
| long get_tm_gmtoff | ( | struct tm * | t | ) |
Definition at line 148 of file time.cpp.
Referenced by runtime_time_localtimezone_offset().

| void runtime_time_finalize | ( | void * | memory | ) |
| int64_t runtime_time_localtimezone_offset | ( | ) |
Get the local timezone offset in seconds.
Definition at line 193 of file time.cpp.
References get_tm_gmtoff().

| YoiIntAndIntObject * runtime_time_monotonic_now | ( | ) |
Get the current monotonic time as a YoiIntAndIntObject.
Definition at line 200 of file time.cpp.
References YoiIntAndIntObject::create().

| YoiIntAndIntObject * runtime_time_now | ( | ) |
Return the current time as a YoiIntAndIntObject.
Definition at line 169 of file time.cpp.
References YoiIntAndIntObject::create().

| void runtime_time_sleep | ( | int64_t | seconds, |
| int64_t | nanoseconds | ||
| ) |
| char * runtime_time_strftime | ( | const char * | format, |
| int64_t | timestamp | ||
| ) |
Convert a timestamp to a string according to a given format.
| format | The format string. |
| timestamp | The timestamp to convert. |
Definition at line 184 of file time.cpp.
References MAX_TIME_STR_LEN.