projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
time.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/time.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/time.rb
index
9f2e3c8
..
d123cf6
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/time.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/time.rb
@@
-3,19
+3,22
@@
#
module Puppet::Parser::Functions
newfunction(:time, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:time, :type => :rvalue, :doc => <<-DOC
- This function will return the current time since epoch as an integer.
+ @summary
+ This function will return the current time since epoch as an integer.
- *Examples:*
+ @return
+ the current time since epoch as an integer.
- time()
+ @example **Usage**
- Will return something like: 1311972653
+ time()
+ Will return something like: 1311972653
-
Note
that since Puppet 4.8.0 the Puppet language has the data types Timestamp (a point in time) and
+
> *Note:*
that since Puppet 4.8.0 the Puppet language has the data types Timestamp (a point in time) and
Timespan (a duration). The following example is equivalent to calling time() without
any arguments:
Timespan (a duration). The following example is equivalent to calling time() without
any arguments:
- Timestamp()
+ ```Timestamp()```
DOC
) do |arguments|
DOC
) do |arguments|