mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-04-03 05:57:39 -05:00
includes/type: Fixed time_t type and added time32_t and time64_t
This commit is contained in:
@@ -5,14 +5,15 @@
|
|||||||
|
|
||||||
namespace type {
|
namespace type {
|
||||||
|
|
||||||
using time_t = u16 [[format("type::impl::format_time_t")]];
|
using time32_t = u32 [[format("type::impl::format_time_t")]];
|
||||||
|
using time64_t = u64 [[format("type::impl::format_time_t")]];
|
||||||
|
|
||||||
namespace impl {
|
namespace impl {
|
||||||
|
|
||||||
fn format_time_t(time_t value) {
|
fn format_time_t(time_t value) {
|
||||||
return std::time::format(std::time::to_utc(value));
|
return std::time::format(std::time::to_utc(value));
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user