TTimeStamp

Structure to represent PostgreSQL Timestamp with/without time zone

Constructors

this
this(DateTime dt, Duration fractionalSeconds = Duration.zero)
this
this(PgDate d, TimeOfDay t = TimeOfDay(), Duration fractionalSeconds = Duration.zero)

Members

Functions

dateTime
DateTime dateTime()
infinity
InfinityState infinity()

Returns infinity state

throwIfNotFitsToDate
void throwIfNotFitsToDate()
toString
string toString()

Static functions

earlier
immutable(TTimeStamp) earlier()

'-infinity', earlier than all other time stamps

later
immutable(TTimeStamp) later()

'infinity', later than all other time stamps

max
immutable(TTimeStamp) max()

Returns the TimeStamp farthest in the future which is representable by TimeStamp.

min
immutable(TTimeStamp) min()

Returns the TimeStamp farthest in the past which is representable by TimeStamp.

Variables

date
PgDate date;

Date and time of TimeStamp

fracSec
Duration fracSec;

fractional seconds, 1 microsecond resolution

time
TimeOfDay time;

Meta