package reql_tests

import "gopkg.in/rethinkdb/rethinkdb-go.v6/internal/integration/reql_tests"

Index

Variables

var Ast = struct {
	RqlTzinfo     func(tz string) *time.Location
	Fromtimestamp func(ts float64, loc *time.Location) time.Time
	Now           func() time.Time
}{
	func(tz string) *time.Location {
		t, _ := time.Parse("-07:00 UTC", tz+" UTC")

		return t.Location()
	},
	func(ts float64, loc *time.Location) time.Time {
		sec, nsec := math.Modf(ts)

		return time.Unix(int64(sec), int64(nsec*1000)*1000000).In(loc)
	},
	time.Now,
}
var FloatInfo = struct {
	Min, Max float64
}{math.SmallestNonzeroFloat64, math.MaxFloat64}

Functions

func PacificTimeZone

func PacificTimeZone() *time.Location

func UTCTimeZone

func UTCTimeZone() *time.Location

Types

type Err

type Err struct {
	Type    string
	Message string
	Regex   string
}

Source Files

common.go

Version
v6.2.2 (latest)
Published
Jun 2, 2022
Platform
linux/amd64
Imports
9 packages
Last checked
1 week ago

Tools for package owners.