index.js
function fromAppleTime(ts) {
    if (ts == 0) {
        return null
    }

    // unpackTime returns 0 if the timestamp wasn't packed
    // TODO: see `packTimeConditionally`'s comment
    if (unpackTime(ts) != 0) {
        ts = unpackTime(ts)
    }

    return new Date((ts + DATE_OFFSET) * 1000)
}
function fromAppleTime(ts) {
    if (ts == 0) {
        return null
    }

    // unpackTime returns 0 if the timestamp wasn't packed
    // TODO: see `packTimeConditionally`'s comment
    if (unpackTime(ts) != 0) {
        ts = unpackTime(ts)
    }

    return new Date((ts + DATE_OFFSET) * 1000)
}
function fromAppleTime ( ts ) { if ( ts == 0 ) { return null } // unpackTime returns 0 if the timestamp wasn't packed // TODO: see `packTimeConditionally`'s comment if ( unpackTime ( ts ) != 0 ) { ts = unpackTime ( ts ) } return new Date ( ( ts + DATE_OFFSET ) * 1000 ) }
Transforms an Apple-style timestamp to a proper unix timestamp
Transforms an Apple - style timestamp to a proper unix timestamp