time

package
v0.0.3-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FARCASTER_EPOCH int64 = 1609459200000 // January 1, 2021 UTC

Variables

This section is empty.

Functions

func ExtractEventTimestamp

func ExtractEventTimestamp(eventId int64) (int64, error)

Extracts the timestamp from an event ID.

func FromFarcasterTime

func FromFarcasterTime(timeSeconds int64) (int64, error)

Converts from a Farcaster to Unix timestamp.

func GetFarcasterTime

func GetFarcasterTime() (int64, error)

Get the current Farcaster time.

func ToFarcasterTime

func ToFarcasterTime(timeMillis int64) (int64, error)

Converts from a Unix to Farcaster timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL