Methods

Class/Module Index [+]

Quicksearch

Pkg::Util::Date

Utilities for managing/querying date/time

Public Class Methods

timestamp(separator=nil) click to toggle source
# File ext/packaging/lib/packaging/util/date.rb, line 6
def timestamp(separator=nil)
  if s = separator
    format = "%Y#{s}%m#{s}%d#{s}%H#{s}%M#{s}%S"
  else
    format = "%Y-%m-%d %H:%M:%S"
  end
  Time.now.strftime(format)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.