Function get_offset

Source
pub fn get_offset() -> i64
Expand description

Get the date offset for the iMessage Database

This offset is used to adjust the unix timestamps stored in the iMessage database with a non-standard epoch of 2001-01-01 00:00:00 in the current machine’s local time zone.

§Example

use imessage_database::util::dates::get_offset;

let current_epoch = get_offset();