Skip to contents

Datetime component access and assignment functions

Usage

year(x)

year(x) <- value

month(x)

month(x) <- value

mday(x)

mday(x) <- value

day(x)

day(x) <- value

hour(x)

hour(x) <- value

minute(x)

minute(x) <- value

second(x)

second(x) <- value

tz(x)

tz(x) <- value

# S3 method for partial_time
year(x)

# S3 method for partial_time
year(x) <- value

# S4 method for partial_time
year(x) <- value

# S3 method for partial_time
month(x)

# S3 method for partial_time
month(x) <- value

# S4 method for partial_time
month(x) <- value

# S3 method for partial_time
mday(x)

# S3 method for partial_time
day(x) <- value

# S4 method for partial_time
day(x) <- value

# S3 method for partial_time
hour(x)

# S3 method for partial_time
hour(x) <- value

# S4 method for partial_time
hour(x) <- value

# S3 method for partial_time
minute(x)

# S3 method for partial_time
minute(x) <- value

# S4 method for partial_time
minute(x) <- value

# S3 method for partial_time
second(x)

# S3 method for partial_time
second(x) <- value

# S4 method for partial_time
second(x) <- value

# S3 method for partial_time
tz(x)

# S3 method for partial_time
tz(x) <- value

Arguments

x

A time-like object to access or assign to

value

For assignment, a value to assign

Value

The numeric vector associated with the accessor field.

Note

Care is taken to make these functionas as compatible as possible with similar datetime packages. However, some functions may be masked and cause errors using their masking functions.