tm

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

README

Time Meta-Data

An auxiliary type for storing time of creation and time of update of something useful.

Time of creation and time of update are often found in changeable objects.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeMetadata

type TimeMetadata struct {
	// contains filtered or unexported fields
}

func New

func New() *TimeMetadata

New creates a new Time Meta-Data with 'Creation Time' field filled with the current Time.

func (*TimeMetadata) GetCreationTime

func (tmd *TimeMetadata) GetCreationTime() bt.UnixTimeStamp

GetCreationTime returns the 'Creation Time' field of the Time Meta-Data object.

func (*TimeMetadata) GetUpdateTime

func (tmd *TimeMetadata) GetUpdateTime() bt.UnixTimeStamp

GetUpdateTime returns the 'Update Time' field of the Time Meta-Data object.

func (*TimeMetadata) Update

func (tmd *TimeMetadata) Update()

Update updates the 'Update Time' field of the Time Meta-Data object using the current time.

Jump to

Keyboard shortcuts

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