0 | module Oracle.FFI.DateTime
  1 |
  2 | %default total
  3 |
  4 | ||| Return the address of the dpiTimestamp embedded inside a dpiData value.
  5 | |||
  6 | ||| The returned pointer is owned by the current Oracle row and remains valid
  7 | ||| until the next fetch or until the statement is released.
  8 | |||
  9 | ||| Returns NULL when the supplied dpiData pointer is NULL.
 10 | |||
 11 | export %foreign "C:oracle_data_timestamp,oracle-idris"
 12 | prim__dataTimestamp : AnyPtr -> PrimIO AnyPtr
 13 |
 14 | ||| Retrieve the year component of a timestamp.
 15 | |||
 16 | export %foreign "C:oracle_timestamp_year,oracle-idris"
 17 | prim__timestampYear : AnyPtr -> PrimIO Int32
 18 |
 19 | ||| Retrieve the month component of a timestamp.
 20 | |||
 21 | export %foreign "C:oracle_timestamp_month,oracle-idris"
 22 | prim__timestampMonth : AnyPtr -> PrimIO Int32
 23 |
 24 | ||| Retrieve the day component of a timestamp.
 25 | |||
 26 | export %foreign "C:oracle_timestamp_day,oracle-idris"
 27 | prim__timestampDay : AnyPtr -> PrimIO Int32
 28 |
 29 | ||| Retrieve the hour component of a timestamp.
 30 | |||
 31 | export %foreign "C:oracle_timestamp_hour,oracle-idris"
 32 | prim__timestampHour : AnyPtr -> PrimIO Int32
 33 |
 34 | ||| Retrieve the minute component of a timestamp.
 35 | |||
 36 | export %foreign "C:oracle_timestamp_minute,oracle-idris"
 37 | prim__timestampMinute : AnyPtr -> PrimIO Int32
 38 |
 39 | ||| Retrieve the second component of a timestamp.
 40 | |||
 41 | export %foreign "C:oracle_timestamp_second,oracle-idris"
 42 | prim__timestampSecond : AnyPtr -> PrimIO Int32
 43 |
 44 | ||| Retrieve the fractional second component of a timestamp.
 45 | |||
 46 | ||| The returned value is expressed in nanoseconds.
 47 | |||
 48 | export %foreign "C:oracle_timestamp_fsecond,oracle-idris"
 49 | prim__timestampNanosecond : AnyPtr -> PrimIO Int32
 50 |
 51 | ||| Retrieve the timezone hour offset.
 52 | |||
 53 | ||| This is only meaningful for TIMESTAMP WITH TIME ZONE values.
 54 | |||
 55 | export %foreign "C:oracle_timestamp_tz_hour,oracle-idris"
 56 | prim__timestampTZHour : AnyPtr -> PrimIO Int32
 57 |
 58 | ||| Retrieve the timezone minute offset.
 59 | |||
 60 | ||| This is only meaningful for TIMESTAMP WITH TIME ZONE values.
 61 | |||
 62 | export %foreign "C:oracle_timestamp_tz_minute,oracle-idris"
 63 | prim__timestampTZMinute : AnyPtr -> PrimIO Int32
 64 |
 65 | ||| Return the dpiIntervalDS embedded inside a dpiData value.
 66 | |||
 67 | ||| The returned pointer is owned by Oracle and must not be freed.
 68 | |||
 69 | export %foreign "C:oracle_data_interval_ds,oracle-idris"
 70 | prim__dataIntervalDS : AnyPtr -> PrimIO AnyPtr
 71 |
 72 | ||| Retrieve the day component of an INTERVAL DAY TO SECOND value.
 73 | |||
 74 | export %foreign "C:oracle_interval_ds_days,oracle-idris"
 75 | prim__intervalDSDays : AnyPtr -> PrimIO Int32
 76 |
 77 | ||| Retrieve the hour component of an INTERVAL DAY TO SECOND value.
 78 | |||
 79 | export %foreign "C:oracle_interval_ds_hours,oracle-idris"
 80 | prim__intervalDSHours : AnyPtr -> PrimIO Int32
 81 |
 82 | ||| Retrieve the minute component of an INTERVAL DAY TO SECOND value.
 83 | |||
 84 | export %foreign "C:oracle_interval_ds_minutes,oracle-idris"
 85 | prim__intervalDSMinutes : AnyPtr -> PrimIO Int32
 86 |
 87 | ||| Retrieve the second component of an INTERVAL DAY TO SECOND value.
 88 | |||
 89 | export %foreign "C:oracle_interval_ds_seconds,oracle-idris"
 90 | prim__intervalDSSeconds : AnyPtr -> PrimIO Int32
 91 |
 92 | ||| Retrieve the fractional second component of an INTERVAL DAY TO SECOND value.
 93 | |||
 94 | ||| The returned value is expressed in nanoseconds.
 95 | |||
 96 | export %foreign "C:oracle_interval_ds_fseconds,oracle-idris"
 97 | prim__intervalDSNanoseconds : AnyPtr -> PrimIO Int32
 98 |
 99 | ||| Return the dpiIntervalYM embedded inside a dpiData value.
100 | |||
101 | ||| The returned pointer is owned by Oracle and must not be freed.
102 | |||
103 | export %foreign "C:oracle_data_interval_ym,oracle-idris"
104 | prim__dataIntervalYM : AnyPtr -> PrimIO AnyPtr
105 |
106 | ||| Retrieve the year component of an INTERVAL YEAR TO MONTH value.
107 | |||
108 | export %foreign "C:oracle_interval_ym_years,oracle-idris"
109 | prim__intervalYMYears : AnyPtr -> PrimIO Int32
110 |
111 | ||| Retrieve the month component of an INTERVAL YEAR TO MONTH value.
112 | |||
113 | export %foreign "C:oracle_interval_ym_months,oracle-idris"
114 | prim__intervalYMMonths : AnyPtr -> PrimIO Int32
115 |