tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tools contains different tools used into the FLUIDOS environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExpiration

func CheckExpiration(expirationTimestamp string) bool

CheckExpiration checks if the expirationTimestamp has already expired.

func CheckExpirationSinceTime added in v0.1.0

func CheckExpirationSinceTime(sinceTimestamp string, expirationLapse time.Duration) bool

CheckExpirationSinceTime checks if the expirationTimestamp has already expired.

func GetExpirationTime added in v0.1.0

func GetExpirationTime(h, m, s int) string

GetExpirationTime returns the current time plus h hours, m minutes and s seconds in RFC3339 format.

func GetTimeNow

func GetTimeNow() string

GetTimeNow returns the current time in RFC3339 format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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