Parsing “date” field of iPhone SMS file from backup

后端 未结 8 1530
感动是毒
感动是毒 2021-02-02 00:26

While this isn\'t a programming question per se, it IS related.

So I\'m trying to figure out how to parse the SMS DB that gets backed up from the iPhone. I\'m looking at

8条回答
  •  死守一世寂寞
    2021-02-02 00:47

    Since the backup is exported to SQLite database format, here's how to convert the number to a real date in SQLite:

    select
        datetime(date + strftime('%s', '2001-01-01 00:00:00'),
           'unixepoch', 'localtime') as date,
        *
    from message
    

提交回复
热议问题