|
hoshi-lang dev
Yet another programming language
|


Go to the source code of this file.
Classes | |
| struct | YoiIntAndIntObject |
Macros | |
| #define | MAX_TIME_STR_LEN 128 |
| #define | LIBTIME_EXPORT extern "C" |
| #define | LIBTIME_NOFFI |
| #define | LIBTIME_FFI |
Functions | |
| LIBTIME_EXPORT LIBTIME_NOFFI YoiIntAndIntObject * | runtime_time_now () |
| Return the current time as a YoiIntAndIntObject. | |
| LIBTIME_EXPORT LIBTIME_FFI void | runtime_time_sleep (int64_t seconds, int64_t nanoseconds) |
| Sleep for a given number of seconds. | |
| LIBTIME_EXPORT LIBTIME_FFI char * | runtime_time_strftime (const char *format, int64_t timestamp) |
| Convert a timestamp to a string according to a given format. | |
| LIBTIME_EXPORT LIBTIME_FFI int64_t | runtime_time_localtimezone_offset () |
| Get the local timezone offset in seconds. | |
| LIBTIME_EXPORT LIBTIME_NOFFI YoiIntAndIntObject * | runtime_time_monotonic_now () |
| Get the current monotonic time as a YoiIntAndIntObject. | |
| LIBTIME_EXPORT LIBTIME_FFI void | runtime_time_finalize (void *memory) |
| Finalize the memory created by the time module. | |
| LIBTIME_EXPORT LIBTIME_FFI void runtime_time_finalize | ( | void * | memory | ) |
| LIBTIME_EXPORT LIBTIME_FFI 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().

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

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

| LIBTIME_EXPORT LIBTIME_FFI void runtime_time_sleep | ( | int64_t | seconds, |
| int64_t | nanoseconds | ||
| ) |
| LIBTIME_EXPORT LIBTIME_FFI 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.