I export the date value from sqlite and put it in an email. Date looks like this: 279498721.322872
I am using Objective C in an Iphone application. Does anyone know how to make this export as a normal date, whether 2009-02-10 or anything picky?
Thanks for answers. The answer came from my Guru Alex Cone. He told me to use the following:
NSTimeInterval tempInterval = (NSTimeInterval)sqlite3_column_double(statement, 4);
Then the variable tempIntervalcan be loaded into the method NSDate.
tempInterval
NSDate
, 279498721.322872 NSDate, +dateWithTimeIntervalSinceReferenceDate, ( MDT): 2009-11-09 15:32:01 -0700, 4 . , , , NSDateFormatter.
279498721.322872
+dateWithTimeIntervalSinceReferenceDate
2009-11-09 15:32:01 -0700
NSDateFormatter
, sqlite ( ) ( sql). , : " ?"
echo date("Y-m-d",time(279498721.322872));
Source: https://habr.com/ru/post/1722387/More articles:Using tcpdump, how can I see the most unencrypted SMTP dialog? - linuxProgrammatically Using Outlook "Vote" Functionality - .netAccess violation when calling an external function (C ++) from a Delphi application - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722385/can-jetty-pick-up-changes-to-web-inflib-on-hot-deployment-how&usg=ALkJrhh3NFCqByLvIASPtc9VxnSo3U5ZwAHow to connect two modules in Verilog? - moduleWhat are the security permissions required to list users in the active directory - c #Putting the complete file system in a version control system - version-controlPython form processing alternatives - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722391/is-there-an-open-source-solution-for-full-filesystem-revision-control-where-the-revision-dbrepository-is-remote&usg=ALkJrhiFCvcmEw_U_X2p3zQeu6m7WbNmegDecrypting a cookie converts it to local time? - c #All Articles