Documentation
¶
Overview ¶
Package instant exposes JVM-faithful java.time.Instant equivalents for code running on glojure. Statics (Instant/now, Instant/parse, Instant/ofEpochSecond, Instant/ofEpochMilli, Instant/EPOCH) are published through pkgmap under both the bare "Instant." prefix and the fully qualified Go path. Instance methods (toString, plusMillis, compareTo, ...) reach through lang.FieldOrMethod via reflection on *Instant. java.time.Instant has no public constructor, so there is no (Instant. ...) sugar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EPOCH = jinstant.EPOCH
EPOCH mirrors Instant.EPOCH.
var ISO_INSTANT = &DateTimeFormatter{}
Functions ¶
func OfEpochMilli ¶
OfEpochMilli mirrors Instant.ofEpochMilli.
func OfEpochSecond ¶
OfEpochSecond mirrors Instant.ofEpochSecond (1+2 arg).
Types ¶
type DateTimeFormatter ¶ added in v0.7.6
type DateTimeFormatter struct{}
func (*DateTimeFormatter) Format ¶ added in v0.7.6
func (*DateTimeFormatter) Format(value any) string