zeiteinheit

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code auto-generated; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zeiteinheit

type Zeiteinheit int

Zeiteinheit ist eine Auflistung möglicher Einheiten zur Verwendung in zeitbezogenen Angaben.

const (
	// SEKUNDE is 1 second
	SEKUNDE       Zeiteinheit = iota + 1
	MINUTE                    // MINUTE is 1 minute
	STUNDE                    // STUNDE is 1 hour
	VIERTELSTUNDE             // VIERTELSTUNDE is quarter-hour (15 MINUTE)
	TAG                       // TAG is 1 day
	WOCHE                     // WOCHE is 1 week
	MONAT                     // MONAT is 1 month
	QUARTAL                   // QUARTAL is 1/4 year
	HALBJAHR                  // HALBJAHR is 1/2 half year
	JAHR                      // JAHR is 1 year
)

func (Zeiteinheit) MarshalJSON

func (r Zeiteinheit) MarshalJSON() ([]byte, error)

MarshalJSON is generated so Zeiteinheit satisfies json.Marshaler.

func (*Zeiteinheit) Scan added in v0.2.3

func (r *Zeiteinheit) Scan(src interface{}) error

Scan sets r to the enum value represented by src. It implements the sql.Scanner interface to be useable by sql drivers when reading from database.

func (Zeiteinheit) String

func (i Zeiteinheit) String() string

func (*Zeiteinheit) UnmarshalJSON

func (r *Zeiteinheit) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so Zeiteinheit satisfies json.Unmarshaler.

func (Zeiteinheit) Value added in v0.2.3

func (r Zeiteinheit) Value() (driver.Value, error)

Value returns the string representation of r or an error, if no string representation exists. It implements the sql.Valuer interface to be useable by sql drivers when storing enums.

Jump to

Keyboard shortcuts

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