posix_utils: Various POSIX utilities

Description Usage Arguments Format Value See Also Examples

Description

POSIXct() mirrors primitive contructors in base R (double(), character() etc.)

Usage

1
2
3
4
5
6
7
8
9

Arguments

x

an R object

length

A non-negative number specifying the desired length. Supplying an argument of length other than one is an error.

tz

a timezone (defaults to "utc")

Format

An object of class POSIXct (inherits from POSIXt) of length 1.

Value

TRUE if x is a POSIXct or POSIXlt object, FALSE otherwise.

See Also

is.instant(), is.timespan(), is.Date()

Examples

1
2
is.POSIXt(as.Date("2009-08-03"))
is.POSIXt(as.POSIXct("2009-08-03"))

Example output

Attaching package:lubridateThe following objects are masked frompackage:base:

    date, intersect, setdiff, union

[1] FALSE
[1] TRUE

lubridate documentation built on Feb. 26, 2021, 5:09 p.m.