// ToTimestamp attempts to cast the Boolean to a Timestamp.
// The result is not checked for an overflow.
// Use the ToTimestampChecked version of this method if you need to check for
// an overflow.
ToTimestamp attempts to cast the Boolean to a Timestamp.
The result is not checked for an overflow.
Use the ToTimestampChecked version of this method if you need to check for
an overflow.
// ToTimestamp attempts to cast the Boolean to a Timestamp . // The result is not checked for an overflow . // Use the ToTimestampChecked version of this method if you need to check for // an overflow .
func (t Boolean) ToTimestamp() Timestamp {
	if t {
		return Timestamp(1)
	}
	return Timestamp(0)
}
func ( t Boolean ) ToTimestamp ( ) Timestamp { if t { return Timestamp ( 1 ) } return Timestamp ( 0 ) }
ToTimestamp attempts to cast the Boolean to a Timestamp.
ToTimestamp attempts to cast the Boolean to a Timestamp .