File: timezone.R

package info (click to toggle)
r-base 4.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112,924 kB
  • sloc: ansic: 291,338; fortran: 111,889; javascript: 14,798; yacc: 6,154; sh: 5,689; makefile: 5,239; tcl: 4,562; perl: 963; objc: 791; f90: 758; asm: 258; java: 31; sed: 1
file content (9 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
## moved from reg-tests-1d.R and datetime.R as failure should not be fatal
## to make check-devel.

## PR#17186 - Sys.timezone() on some Debian-derived platforms
(S.t <- Sys.timezone())
## NB: This will fail on non-standard platforms, or even standard new OSes.
## --  We are strict here, in order to *learn* about those and possibly work around:
if(is.na(S.t) || !nzchar(S.t)) stop("could not get timezone")
## has been NA_character_  in Ubuntu 14.04.5 LTS