Skip to content

tt dropping zeroes from unix timestamps #2

@icio

Description

@icio

Hey! Long time! How's it going?

$ tt 10997910450
Format      :                     Value
=======================================
Nano        :       1099791045000000000
Micro       :          1099791045000000
Milli       :             1099791045000
Unix secs   :                1099791045 <-- dropped the zero
RFC3339     : 2004-11-07T01:30:45Z
RFC3339Nano : 2004-11-07T01:30:45Z
Local       : 2004-11-07 01:30:45 +0000 GMT
Code        : time.Date(2004, 11, 7, 1, 30, 45, 0, time.UTC)

The timestamp with a zero should be 2318-07-06 15:07:30 +0000 UTC: https://go.dev/play/p/LBB14N_6d5d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions