X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fstrftime.rb;h=50ee4bc3338ecb0efb6c8b9cc4d3a885571a1115;hp=045d2568177dafe16697a8e96e501d4ad4ba11e0;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/strftime.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/strftime.rb index 045d25681..50ee4bc33 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/strftime.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/strftime.rb @@ -4,22 +4,21 @@ # module Puppet::Parser::Functions newfunction(:strftime, :type => :rvalue, :doc => <<-DOC - This function returns formatted time. + @summary + This function returns formatted time. - Note that since Puppet 4.8.0 the function with the same name in Puppet will be used instead of this - function. It also supports the Timestamp and Timespan data types in the Puppet language. - - *Examples:* + @return + converted time according to the directives in the given format string - To return the time since epoch: - - strftime("%s") + > *Note:* that since Puppet 4.8.0 the function with the same name in Puppet will be used instead of this + function. It also supports the Timestamp and Timespan data types in the Puppet language. - To return the date: + @example **Usage** - strftime("%Y-%m-%d") + To return the time since epoch: strftime("%s") + To return the date: strftime("%Y-%m-%d") - *Format meaning:* + **Format meaning:** %a - The abbreviated weekday name (``Sun'') %A - The full weekday name (``Sunday'')