Constant nc::types::TIME_UPTIME_SEC_MAX[][src]

pub const TIME_UPTIME_SEC_MAX: i64 = 30 * 365 * 24 * 3600; // 946_080_000i64
Expand description

Limits for settimeofday():

To prevent setting the time close to the wraparound point time setting is limited so a reasonable uptime can be accomodated. Uptime of 30 years should be really sufficient, which means the cutoff is 2232. At that point the cutoff is just a small part of the larger problem.