Skip to content

Commit d8aa7af

Browse files
author
ripley
committed
amend comment: not all linux-based systems have systemd
git-svn-id: https://svn.r-project.org/R/trunk@87819 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 615712b commit d8aa7af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/library/base/R/datetime.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ Sys.timezone <- function(location = TRUE)
9191
} else tzdir <- ""
9292
}
9393

94-
## First try timedatectl: should work on any modern Linux
95-
## as part of systemd (and probably nowhere else)
94+
## First try timedatectl: should work on any modern (post 2015)
95+
## glibc-based Linux as part of systemd (and probably nowhere else)
9696
## https://www.freedesktop.org/software/systemd/man/sd_booted.html
97+
## systemd is (in 2025) an optional part of musl
9798
if (dir.exists("/run/systemd/system") && nzchar(Sys.which("timedatectl"))) {
9899
inf <- system("timedatectl", intern = TRUE)
99100
## typical format:

0 commit comments

Comments
 (0)