lubridate (version 1.3.1)

format_offset: format_offset

Description

function to format the offset of a time from UTC

Usage

format_offset(x, fmt = "%Oz")

Arguments

x
POSIXct for which offset-string is sought
fmt
string describing format of offset, default: %Oz

Value

  • string

Details

This is an internal function, used in conjunction with stamp. There are three available formats:

  • %Oo+01
  • %Oz+0100
  • %OO+01:00

If the %Oo format is used for a half-hour timezone, a warning is issued, and the format is changed to %Oz