common

package
v0.0.0-...-6684604 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SequenceDelimiter = ";"

Variables

This section is empty.

Functions

This section is empty.

Types

type IntSequence

type IntSequence []int

func (IntSequence) MarshalText

func (s IntSequence) MarshalText() ([]byte, error)

func (*IntSequence) UnmarshalText

func (s *IntSequence) UnmarshalText(text []byte) error

type Time

type Time struct {
	UpTime     int  `xml:"UpTime,omitempty"`
	SummerTime int  `xml:"SummerTime,omitempty"`
	TimeZone   *int `xml:"TimeZone,omitempty"`
	Timestamp  Timestamp
}

func NewTime

func NewTime() *Time

func (*Time) Now

func (t *Time) Now()

func (*Time) WithTimeZone

func (t *Time) WithTimeZone(tz int)

func (*Time) WithoutTimeZone

func (t *Time) WithoutTimeZone()

type Timestamp

type Timestamp time.Time

func (Timestamp) MarshalText

func (t Timestamp) MarshalText() ([]byte, error)

MarshalText defines how encoding/xml marshals the object to XML, the result is a string of the UNIX timestamp

func (*Timestamp) UnmarshalText

func (t *Timestamp) UnmarshalText(text []byte) error

UnmarshalText defines how encoding/xml unmarshals the object from XML, a UNIX timestamp string is converted to int which is used for the Timestamp object value

Jump to

Keyboard shortcuts

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