Returns a Time object which denotes self. If self is a julian date, convert it to a gregorian date before converting it to Time.
Returns self.
Returns a DateTime object which denotes self.
Stores class name (Date) with Julian year y, month m, day d and Day of Calendar Reform sg as JSON string
Returns a Time object which denotes self.
Returns a Date object which denotes self.
Returns self.
Stores class name (DateTime) with Julian year y, month m, day d, hour H, minute M, second S, offset of and Day of Calendar Reform sg as JSON string
Returns self.
Returns a Date object which denotes self.
Returns a DateTime object which denotes self.
Stores class name (Time) with number of seconds since epoch and number of microseconds for Time as JSON string
Converts the contents of the database to an in-memory Hash object, and returns it.
Returns ios.
Returns a hash of all key-value pairs contained in the database.
Stores class name (OpenStruct) with this struct’s values t as a JSON string.
Stores class name (Range) with JSON array of arguments a which include first (integer), last (integer), and exclude_end? (boolean) as JSON string.
return the JSON value
Returns self if no arguments are given. Otherwise, converts the set to another with klass.new(self, *args, &block).
In subclasses, returns klass.new(self, *args, &block) unless overridden.
In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.
Return the path as a String.
to_path is implemented so Pathname objects are usable with File.open, etc.