instant

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: EPL-1.0 Imports: 5 Imported by: 1 module, 0 packages

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.

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.

View Source
var ISO_INSTANT = &DateTimeFormatter{}

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

type DateTimeFormatter added in v0.7.6

type DateTimeFormatter struct{}

func (*DateTimeFormatter) Format added in v0.7.6

func (*DateTimeFormatter) Format(value any) string

Jump to

Keyboard shortcuts

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