on-internet
← Community

Show the timezone when printing a data frame with a `POSIXct` column

Stack Overflow ·

Is there a simple way (i.e., not involoving writing a print() method) to show the timezone when printing a data frame with a POSIXct column ? as.data.frame(Sys.time()) # Sys.time() # 1 2025-11-26 17:18:45 ## <- show timezone (GMT) here as.data.frame(Sys.time())[[1]] # [1] "2025-11-26 17:18:48 GMT"

Comments

Sign in or sign up to comment and upvote.

No comments yet.