Learn R Programming

R.oo (version 1.26.0)

getInstantiationTime.Object: Gets the time when the object was instantiated

Description

Gets the time when the object was instantiated (created) as a POSIXt object.

Usage

# S3 method for Object
getInstantiationTime(this, ...)

Value

Returns a POSIXt object, which extends class POSIXct.

Arguments

...

Not used.

Author

Henrik Bengtsson

Details

The instantiation time stamp is set when the object is created, and only of option "R.oo::BasicObject/instantiationTime" is TRUE.

See Also

For more about time formats and POSIX see DateTimeClasses. For more information see Object.

Examples

Run this code
  oopts <- options("R.oo::Object/instantiationTime"=TRUE)
  obj <- Object()
  print(getInstantiationTime(obj))
  options(oopts)

Run the code above in your browser using DataLab