class DateTime
Public Class Methods
parsi(year=0, month=1, day=1, hour=0, minute=0, second=0, zone="00:00")
click to toggle source
Creates a DateTime
object corresponding to the specified Jalali Date
(year
, month
and day
) and time (hour
, minute
and second
) in given zone
.
# File lib/parsi-datetime.rb, line 189 def parsi year=0, month=1, day=1, hour=0, minute=0, second=0, zone="00:00" Parsi::DateTime.civil year, month, day, hour, minute, second, zone end
Also aliased as: jalali
Public Instance Methods
to_parsi()
click to toggle source
Returns a Parsi::DateTime
object representing same date in Jalali calendar
# File lib/parsi-datetime.rb, line 196 def to_parsi Parsi::DateTime.new! ajd, offset end