Deprecated : Use github.com/stellar/go-stellar-sdk instead
Discover Packages
github.com/stellar/go
support
time
package
Version:
v0.0.0-...-aab2ea4
Opens a new window with list of versions in this module.
Published: Dec 10, 2025
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 31 modules, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Millis represents time as milliseconds since epoch without any timezone adjustments
MillisFromInt64 generates a Millis struct from given millis int64
MillisFromSeconds generates a Millis struct from given seconds int64
MillisFromString generates a Millis struct from a string representing an int64
MillisFromTime generates a Millis struct from given go time
Now returns current time in millis
IsNil returns true if the timeMillis has not been initialized to a date other then 0 from epoch
RoundUp returns a new ToInt64 instance with a down to d millis
RoundUp returns a new Millis instance with a rounded up to d millis
ToInt64 returns the actual int64 millis since epoch
ToTime returns a go time.Time timestamp, UTC adjusted
Source Files
¶
Click to show internal directories.
Click to hide internal directories.