instant

package
v0.6.5-rc31 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: EPL-1.0 Imports: 5 Imported by: 0

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

View Source
var EPOCH = jinstant.EPOCH

EPOCH mirrors Instant.EPOCH.

Functions

func Now

func Now() *jinstant.Instant

Now mirrors Instant.now.

func OfEpochMilli

func OfEpochMilli(args ...any) *jinstant.Instant

OfEpochMilli mirrors Instant.ofEpochMilli.

func OfEpochSecond

func OfEpochSecond(args ...any) *jinstant.Instant

OfEpochSecond mirrors Instant.ofEpochSecond (1+2 arg).

func Parse

func Parse(args ...any) *jinstant.Instant

Parse mirrors Instant.parse.

Types

This section is empty.

Jump to

Keyboard shortcuts

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