Module: OCI8::BindType

Defined in:
lib/oci8/object.rb,
lib/oci8/bindtype.rb,
lib/oci8/datetime.rb,
ext/oci8/oci8lib.c,
ext/oci8/ocinumber.c

Defined Under Namespace

Modules: Util Classes: Base, BasicNumberType, BigDecimal, CLOB, Date, DateTime, Float, Integer, IntervalDS, IntervalYM, LocalDateTime, LocalTime, NamedType, Number, Object, OraDate, OraNumber, RAW, Rational, String, Time, UTCDateTime, UTCTime

Constant Summary collapse

Mapping =
{}

Class Method Summary collapse

Class Method Details

.default_timezone:local or :utc

Returns the default time zone when using Oracle 8.x client. The value is unused when using Oracle 9i or upper client.

See also: OCI8::BindType::Time

Returns:

  • (:local or :utc)


13
14
15
# File 'lib/oci8/datetime.rb', line 13

def self.default_timezone
  OCI8::BindType::Util.default_timezone
end

.default_timezone=(tz) ⇒ Object

Sets the default time zone when using Oracle 8.x client. The value is unused when using Oracle 9i or upper client.

See also: OCI8::BindType::Time

Parameters:

  • tz (:local or :utc)


23
24
25
# File 'lib/oci8/datetime.rb', line 23

def self.default_timezone=(tz)
  OCI8::BindType::Util.default_timezone = tz
end