time/sys/refresh_tz/
mod.rs

1#[cfg_attr(target_family = "unix", path = "unix.rs")]
2mod imp;
3
4/// Update time zone information from the system.
5///
6/// For safety documentation, see [`time::util::refresh_tz`].
7pub(crate) unsafe fn refresh_tz_unchecked() {
8    // Safety: The caller must uphold the safety requirements.
9    unsafe { imp::refresh_tz_unchecked() }
10}
11
12/// Attempt to update time zone information from the system.
13///
14/// Returns `None` if the call is not known to be sound.
15pub(crate) fn refresh_tz() -> Option<()> {
16    imp::refresh_tz()
17}