Convert date to double with date before 1970

zzheads

How can convert date in swift to seconds/milliseconds/no matter - to double value, when date is before 1970? (when date after 1970 - its easy with NSDate().timeIntervalSince1970)

vadian

Dates before 1970 are represented by a negative Double (aka TimeInterval)

let earlierDate = Date(timeIntervalSince1970: -200000000) // August 31, 1963 5:26

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to convert date before 1970 in python

How to convert a date formatted string before 1970 into a timestamp in windows

Show proper date before 1970

Date before 1970 in Typo3

bootstrap-datepicker set date before 1970

Python convert date format to datetime accurately which includes dates before 1970

Convert double to date

Create Date object in PHP for dates before 1970 in certain format

Convert char array representing a date to seconds since 1970

Convert double to mysql date format

Convert double to date using SparkR

Convert double precision to date format

Converting a date differnce into a timestamp in seconds from a date that is before 1970 relative to now. PHP

Probleme PHP DATE showing 1970

Default Date year set at 1970

Php: date +1 displays 1970

Convert 'double' to 'Date' in Powershell Select-Object

Convert string to Date/Int/Double using codable

Convert Double to Date using Spark in R

AngularJS convert Date to getTime() before sending to server

Convert string to mysql date format before insert

Convert a Date in Xcode to timestamp before adding to firestore

Convert pandas date column into years before now

Convert MMM-YY to date where date before 1968

Convert german date string into date and check if its before today

Python change the date format from dd/mm/yy to dd/mm/yyyy for the dates before 1970

std::tm to std::time_t conversion gives error for a specific date before 1970 (c++)

converting string to date using TO_DATE for MM/DD/YY gives wrong values for dates before 1970 [snowflake-cloud-data-platform]

python convert filetime to datetime for dates before 1970

TOP Ranking

HotTag

Archive