Mercurial > foo_out_sdl
comparison foosdk/sdk/pfc/filetimetools.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:e9bb126753e7 | 1:20d02a178406 |
|---|---|
| 1 #pragma once | |
| 2 | |
| 3 namespace pfc { | |
| 4 typedef uint64_t t_filetimestamp; | |
| 5 static constexpr t_filetimestamp filetimestamp_invalid = 0; | |
| 6 static constexpr t_filetimestamp filetimestamp_1second_increment = 10000000; | |
| 7 | |
| 8 t_filetimestamp filetimestamp_from_string(const char * date); | |
| 9 t_filetimestamp filetimestamp_from_string_utc(const char* date); | |
| 10 // From ISO 8601 time | |
| 11 t_filetimestamp filetimestamp_from_string_ISO_8601(const char* date); | |
| 12 | |
| 13 //! Warning: this formats according to system timezone settings, created strings should be used for display only, never for storage. | |
| 14 pfc::string_formatter format_filetimestamp(t_filetimestamp p_timestamp); | |
| 15 //! UTC timestamp | |
| 16 pfc::string_formatter format_filetimestamp_utc(t_filetimestamp p_timestamp); | |
| 17 //! Local timestamp with milliseconds | |
| 18 pfc::string_formatter format_filetimestamp_ms(t_filetimestamp p_timestamp); | |
| 19 | |
| 20 } |
