Documentation
¶
Index ¶
- Constants
- func DoubleToTime(timeToConvert float64) (timeGo time.Time)
- func Flatten(SliceToWrite []byte, element interface{}) int
- func FlattenSize(SliceToWrite []byte, element int) int
- func TestTimeConversion()
- func TimeRecToDouble(TimeRec TimeRecLabview) float64
- func TimeRecToTime(TimeRec TimeRecLabview) (timeGo time.Time)
- func TimeToDouble(timeToConvert time.Time) float64
- func Unflatten(SliceToRead []byte, element interface{}) (SliceReaded []byte, elementReaded interface{})
- func UnflattenSize(SliceToRead []byte) (SliceReaded []byte, element int)
- type TimeRecLabview
- func (ltr *TimeRecLabview) FlattenToByteSlice(dataSlice []byte) int
- func (ltr *TimeRecLabview) GetString(formatTime int) string
- func (ltr *TimeRecLabview) SetFromString(timeString string, formatTime int) bool
- func (ltr *TimeRecLabview) SetTime(timeToWrite time.Time)
- func (ltr *TimeRecLabview) UnflattenFromByteSlice(SliceToRead []byte)
- type TimeStampLabview
Constants ¶
View Source
const ( StringOfTimestamp = 0 // string of full Timestamp yyyy mm dd HH MM SS StringOfDate = 1 // String of Date yyyy mm dd StringOfDateHour = 2 // String of Date yyyy mm dd HH StringOfHourMinuteSecond = 3 // String of Hour and minute HH MM SS StringOfHourMinute = 4 // String of Hour and minute HH MM StringOfHour = 5 // String of Hour HH )
Variables ¶
This section is empty.
Functions ¶
func DoubleToTime ¶
func FlattenSize ¶
func TestTimeConversion ¶
func TestTimeConversion()
func TimeRecToDouble ¶
func TimeRecToDouble(TimeRec TimeRecLabview) float64
func TimeRecToTime ¶
func TimeRecToTime(TimeRec TimeRecLabview) (timeGo time.Time)
func TimeToDouble ¶
func UnflattenSize ¶
Types ¶
type TimeRecLabview ¶
type TimeRecLabview struct {
FractionalSecond float64 `json:"fractional second"`
Second int32 `json:"second"`
Minute int32 `json:"minute"`
Hour int32 `json:"hour"`
DayOfMonth int32 `json:"day of month"`
Month int32 `json:"month"`
Year int32 `json:"year"`
DayOfWeek int32 `json:"day of week"`
DayOfYear int32 `json:"day of year"`
Dst int32 `json:"DST"`
}
func DoubleToTimeRec ¶
func DoubleToTimeRec(timeToConvert float64) (TimeRec TimeRecLabview)
func TimeToTimeRec ¶
func TimeToTimeRec(timeToConvert time.Time) (TimeRec TimeRecLabview)
func UnflattenTimeRecLabview ¶
func UnflattenTimeRecLabview(SliceToRead []byte) (SliceReaded []byte, ltr TimeRecLabview)
func (*TimeRecLabview) FlattenToByteSlice ¶
func (ltr *TimeRecLabview) FlattenToByteSlice(dataSlice []byte) int
func (*TimeRecLabview) GetString ¶
func (ltr *TimeRecLabview) GetString(formatTime int) string
func (*TimeRecLabview) SetFromString ¶
func (ltr *TimeRecLabview) SetFromString(timeString string, formatTime int) bool
func (*TimeRecLabview) SetTime ¶
func (ltr *TimeRecLabview) SetTime(timeToWrite time.Time)
func (*TimeRecLabview) UnflattenFromByteSlice ¶
func (ltr *TimeRecLabview) UnflattenFromByteSlice(SliceToRead []byte)
type TimeStampLabview ¶
func TimeToTimeStampLabview ¶
func TimeToTimeStampLabview(timeToConvert time.Time) (TimeToTimeStampLabview TimeStampLabview)
Click to show internal directories.
Click to hide internal directories.