Puppet Function: time
- Defined in:
- lib/puppet/functions/time.rb
- Function type:
- Ruby 4.x API
Summary
DEPRECATED. Use the native Puppet fuctionality instead of this function. eg `Integer(Timestamp().strftime('%s'))`Overview
4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/functions/time.rb', line 4 Puppet::Functions.create_function(:time) do dispatch :call_puppet_function do repeated_param 'Any', :args end def call_puppet_function(*args) # Note, `stdlib::time` calls `deprecation`, so we don't also do that here. call_function('stdlib::time', *args) end end |