includes/type: Fixed time_t type and added time32_t and time64_t

This commit is contained in:
Nik
2022-09-07 14:21:05 +02:00
committed by GitHub
parent ccd163b981
commit 93c53f2d2e

View File

@@ -5,14 +5,15 @@
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) {
return std::time::format(std::time::to_utc(value));
};
}
}
}