Fixed instantiating Date with current time
This commit is contained in:
parent
83880c7b24
commit
cc72d9792e
|
@ -17,7 +17,7 @@ actual class Date(val date: NSDate) { // cannot subclass NSDate as it's a class
|
||||||
|
|
||||||
actual constructor(millisSinceEpoch: Long) : this(NSDate(timeIntervalSinceReferenceDate = ((millisSinceEpoch - DiffBetweenEpochTimeAndReferenceDate) / 1000).toDouble()))
|
actual constructor(millisSinceEpoch: Long) : this(NSDate(timeIntervalSinceReferenceDate = ((millisSinceEpoch - DiffBetweenEpochTimeAndReferenceDate) / 1000).toDouble()))
|
||||||
|
|
||||||
actual constructor() : this(NSDate().timeIntervalSince1970.toMillis())
|
actual constructor() : this(NSDate())
|
||||||
|
|
||||||
|
|
||||||
actual val millisSinceEpoch: Long
|
actual val millisSinceEpoch: Long
|
||||||
|
|
Loading…
Reference in New Issue