parttime_access_and_assign {parttime}R Documentation

Datetime component access and assignment functions

Description

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 class 'partial_time'
year(x)

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

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

## S3 method for class 'partial_time'
month(x)

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

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

## S3 method for class 'partial_time'
mday(x)

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

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

## S3 method for class 'partial_time'
hour(x)

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

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

## S3 method for class 'partial_time'
minute(x)

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

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

## S3 method for class 'partial_time'
second(x)

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

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

## S3 method for class 'partial_time'
tz(x)

## S3 replacement method for class '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.


[Package parttime version 0.1.2 Index]