HarptosTime
public class HarptosTime
extension HarptosTime: CustomStringConvertible
A HarptosTime
object represents a moment of time in the AD&D universe, based on the Calendar of
Harptos
-
The epoch value in seconds, where 0 represents the time at 0 Dale Reckoning
Declaration
Swift
public let epoch: Int
-
The month, will be nil in case of a festival
Declaration
Swift
public var month: Int? { get }
-
The festival, will be nil in case of a month
Declaration
Swift
public var festival: HarptosFestival? { get }
-
The day
Declaration
Swift
public var day: Int { get }
-
The year
Declaration
Swift
public var year: Int { get }
-
The hour in the day
Declaration
Swift
public var hour: Int { get }
-
The minute in the current hour
Declaration
Swift
public var minute: Int { get }
-
The second in the current minute
Declaration
Swift
public var second: Int { get }
-
Return a new time by adding days to the current time
Declaration
Swift
public func timeByAdding(days: Int) -> HarptosTime
Parameters
days
The days to add, use negative values to subtract
-
Return a new time by adding months to the current time
Declaration
Swift
public func timeByAdding(months: Int) -> HarptosTime
Parameters
months
The months to add, use negative values to subtract
-
Return a new time by adding years to the current time
Declaration
Swift
public func timeByAdding(years: Int) -> HarptosTime
Parameters
years
The years to add, use negative values to subtract
-
Return a new time by adding seconds to the current time
Declaration
Swift
public func timeByAdding(seconds: Int) -> HarptosTime
Parameters
seconds
The seconds to add, use negative values to subtract
-
Return a new time by adding minutes to the current time
Declaration
Swift
public func timeByAdding(minutes: Int) -> HarptosTime
Parameters
minutes
The minutes to add, use negative values to subtract
-
Return a new time by adding hours to the current time
Declaration
Swift
public func timeByAdding(hours: Int) -> HarptosTime
Parameters
hours
The hours to add, use negative values to subtract
-
Declaration
Swift
public var description: String { get }