pub const SetTimestamp = union(enum) unchanged: unchangedLeave the existing timestamp unmodified.
now: nowSet to current time using Io.Clock.real.
new: Io.TimestampSet to provided timestamp using Io.Clock.real.
pub fn init(optional: ?Io.Timestamp) SetTimestampConvenience for interacting with Stat, in which null indicates unchanged.
431
432
433
434
435
436
437
438
439
440
441
442
443pub const SetTimestamp = union(enum) {
/// Leave the existing timestamp unmodified.
unchanged,
/// Set to current time using `Io.Clock.real`.
now,
/// Set to provided timestamp using `Io.Clock.real`.
new: Io.Timestamp,
/// Convenience for interacting with `Stat`, in which `null` indicates `unchanged`.
pub fn init(optional: ?Io.Timestamp) SetTimestamp {
return if (optional) |t| .{ .new = t } else .unchanged;
}
}