kubernetes/vendor/github.com/google/cel-go/common/types/timestamp.go

type Timestamp

func timestampOf(t time.Time) Timestamp {}

const unixToInternal

const minUnixTime

const maxUnixTime

// Add implements traits.Adder.Add.
func (t Timestamp) Add(other ref.Val) ref.Val {}

// Compare implements traits.Comparer.Compare.
func (t Timestamp) Compare(other ref.Val) ref.Val {}

// ConvertToNative implements ref.Val.ConvertToNative.
func (t Timestamp) ConvertToNative(typeDesc reflect.Type) (any, error) {}

// ConvertToType implements ref.Val.ConvertToType.
func (t Timestamp) ConvertToType(typeVal ref.Type) ref.Val {}

// Equal implements ref.Val.Equal.
func (t Timestamp) Equal(other ref.Val) ref.Val {}

// IsZeroValue returns true if the timestamp is epoch 0.
func (t Timestamp) IsZeroValue() bool {}

// Receive implements traits.Receiver.Receive.
func (t Timestamp) Receive(function string, overload string, args []ref.Val) ref.Val {}

// Subtract implements traits.Subtractor.Subtract.
func (t Timestamp) Subtract(subtrahend ref.Val) ref.Val {}

// Type implements ref.Val.Type.
func (t Timestamp) Type() ref.Type {}

// Value implements ref.Val.Value.
func (t Timestamp) Value() any {}

var timestampValueType

var timestampZeroArgOverloads

var timestampOneArgOverloads

type timestampVisitor

func timestampGetFullYear(t time.Time) ref.Val {}

func timestampGetMonth(t time.Time) ref.Val {}

func timestampGetDayOfYear(t time.Time) ref.Val {}

func timestampGetDayOfMonthZeroBased(t time.Time) ref.Val {}

func timestampGetDayOfMonthOneBased(t time.Time) ref.Val {}

func timestampGetDayOfWeek(t time.Time) ref.Val {}

func timestampGetHours(t time.Time) ref.Val {}

func timestampGetMinutes(t time.Time) ref.Val {}

func timestampGetSeconds(t time.Time) ref.Val {}

func timestampGetMilliseconds(t time.Time) ref.Val {}

func timestampGetFullYearWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetMonthWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetDayOfYearWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetDayOfMonthZeroBasedWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetDayOfMonthOneBasedWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetDayOfWeekWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetHoursWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetMinutesWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetSecondsWithTz(t time.Time, tz ref.Val) ref.Val {}

func timestampGetMillisecondsWithTz(t time.Time, tz ref.Val) ref.Val {}

func timeZone(tz ref.Val, visitor timestampVisitor) timestampVisitor {}