Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › time.zig
time.zig
Index
File
Code
pub const epoch = @import ("time/epoch.zig" );
pub const ns_per_us = 1000 ;
pub const ns_per_ms = 1000 * ns_per_us ;
pub const ns_per_s = 1000 * ns_per_ms ;
pub const ns_per_min = 60 * ns_per_s ;
pub const ns_per_hour = 60 * ns_per_min ;
pub const ns_per_day = 24 * ns_per_hour ;
pub const ns_per_week = 7 * ns_per_day ;
pub const us_per_ms = 1000 ;
pub const us_per_s = 1000 * us_per_ms ;
pub const us_per_min = 60 * us_per_s ;
pub const us_per_hour = 60 * us_per_min ;
pub const us_per_day = 24 * us_per_hour ;
pub const us_per_week = 7 * us_per_day ;
pub const ms_per_s = 1000 ;
pub const ms_per_min = 60 * ms_per_s ;
pub const ms_per_hour = 60 * ms_per_min ;
pub const ms_per_day = 24 * ms_per_hour ;
pub const ms_per_week = 7 * ms_per_day ;
pub const s_per_min = 60 ;
pub const s_per_hour = s_per_min * 60 ;
pub const s_per_day = s_per_hour * 24 ;
pub const s_per_week = s_per_day * 7 ;
test {
_ = epoch ;
}