Skip to contents

A class and constructor of datetime traitlets.

Usage

Datetime(...)

Time(...)

Arguments

...

Arguments that are passed to the initialize method of 'TimeClass'

Super class

RKernel::Trait -> DatetimeClass

Public fields

value

A date.

coerce

Logical value, whether assignments to the value field should be coerced to the appropriate type.

Methods

Inherited methods


Method validator()

Check the value assigned to the traitlet.

Usage

DatetimeClass$validator(value)

Arguments

value

The value assigned to the traitlet.


Method new()

Initialize the traitlet.

Usage

DatetimeClass$new(initial = as.POSIXct(integer(0)), coerce = TRUE)

Arguments

initial

An optional POSIXct object or an object coercive into such an object

coerce

An optional logical value


Method clone()

The objects of this class are cloneable with this method.

Usage

DatetimeClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.