time_to_fingerprint: Calculate fingerprint from time object, or the opposite

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utilities.R

Description

Get an hexadecimal unique identifier corresponding to time an object is created. A time object from a hexadecimal fingerprint can be also obtained.

Usage

1
2
3

Arguments

time

A POSIXct object indicating time an EcoNumData object is created.

tz

The time zone in which to recreate the time object, by default, use current time zone for this machine.

hexmode

An hexmode object, or a character string that can be converted to an hexmode object.

Value

A character string with hexadecimal representation of the time. This could be used as a unique identifier (fingerprint) for objects that are sequencially created in time. The reverse function gets time from a fingerprint.

Author(s)

Philippe.Grosjean@umons.ac.be

See Also

new_econum_data(), options_econum()

Examples

1
2
3
(fp <- time_to_fingerprint(Sys.time()))
fingerprint_to_time(fp) # Reverse process
rm(fp)

EcoNum/econum documentation built on May 9, 2020, 3:57 a.m.