Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'Object'
getInstantiationTime(this, ...)

Arguments

...

Not used.

Details

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

Value

Returns a POSIXt object, which extends class POSIXct.

Author(s)

Henrik Bengtsson

See Also

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

Examples

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

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.