Skip to content

Commit cf76442

Browse files
authored
Expose various date/time functions from pgrx (#337)
* Expose various date/time functions from pgrx These functions provide accessors, generally, for Postgres' various representations of the "current time". `now()` is probably the most common of these. * a few more things from timestamp_support * add `get_timezone_offset` too
1 parent 78c26dd commit cf76442

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plrust-trusted-pgrx/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ pub mod datum {
2424

2525
// dates & times
2626
pub use ::pgrx::datum::{
27-
Date, DateTimeConversionError, DateTimeParts, HasExtractableParts, Interval, Time,
28-
TimeWithTimeZone, Timestamp, TimestampWithTimeZone,
27+
clock_timestamp, current_date, current_time, current_timestamp, get_timezone_offset,
28+
local_timestamp, now, statement_timestamp, time_of_day, to_timestamp,
29+
transaction_timestamp, Date, DateTimeConversionError, DateTimeParts, HasExtractableParts,
30+
Interval, IntervalConversionError, Time, TimeWithTimeZone, Timestamp, TimestampPrecision,
31+
TimestampWithTimeZone, ToIsoString,
2932
};
3033

3134
// zero-copy Arrays

0 commit comments

Comments
 (0)