From 93c53f2d2eb7d6dbeee997b965fdf229ad9a656d Mon Sep 17 00:00:00 2001 From: Nik Date: Wed, 7 Sep 2022 14:21:05 +0200 Subject: [PATCH] includes/type: Fixed time_t type and added time32_t and time64_t --- includes/type/time.pat | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/type/time.pat b/includes/type/time.pat index 80298a9..82684bf 100644 --- a/includes/type/time.pat +++ b/includes/type/time.pat @@ -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)); }; - } + } -} \ No newline at end of file +}