Puppet Function: stdlib::time
- Defined in:
- functions/time.pp
- Function type:
- Puppet Language
Summary
This function is deprecated. It implements the functionality of the original non-namespaced stdlib `time` function.Overview
It is provided for compatability, but users should use the native time related functions directly.
7 8 9 10 11 |
# File 'functions/time.pp', line 7
function stdlib::time(Optional[String] $_timezone = undef) >> Integer {
# Note the `timezone` parameter doesn't do anything and didn't in the ruby implementation for _years_ (pre 1.8.7 perhaps ???)
deprecation('time', 'The stdlib `time` function is deprecated. Please direcly use native Puppet functionality instead. eg. `Integer(Timestamp().strftime(\'%s\'))`', false)
Integer(Timestamp().strftime('%s'))
}
|