Name

new — Creates a new Timestamp object

Synopsis

Timestamp.new(value, fmt)

Description

#new creates a new Timestamp object. With no arguments, the timestamp is set to the current time. If value is specified, it must be a String, Time or BaseTimestamp. If fmt is specified, the instance variable default_fmt is set. If fmt contains a seconds-precision format (“FFn”, where n is in the range 1–9), the instance variable secondprecision is set to n.