We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615712b commit d8aa7afCopy full SHA for d8aa7af
src/library/base/R/datetime.R
@@ -91,9 +91,10 @@ Sys.timezone <- function(location = TRUE)
91
} else tzdir <- ""
92
}
93
94
- ## First try timedatectl: should work on any modern Linux
95
- ## as part of systemd (and probably nowhere else)
+ ## First try timedatectl: should work on any modern (post 2015)
+ ## glibc-based Linux as part of systemd (and probably nowhere else)
96
## https://www.freedesktop.org/software/systemd/man/sd_booted.html
97
+ ## systemd is (in 2025) an optional part of musl
98
if (dir.exists("/run/systemd/system") && nzchar(Sys.which("timedatectl"))) {
99
inf <- system("timedatectl", intern = TRUE)
100
## typical format:
0 commit comments