Skip to main content

get_offset

Function get_offset 

Source
pub fn get_offset() -> i64
Expand description

Return the Unix timestamp offset for the Messages epoch.

Messages stores dates relative to 2001-01-01 00:00:00 UTC.

ยงExample

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

let current_epoch = get_offset();