MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getLocalDate

Method getLocalDate

src/jrd/cvt.cpp:580–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580SLONG EngineCallbacks::getLocalDate()
581{
582 thread_db* tdbb = JRD_get_thread_data();
583
584 if (tdbb && (tdbb->getType() == ThreadData::tddDBB) && tdbb->getRequest())
585 return tdbb->getRequest()->getLocalTimeStamp().timestamp_date;
586
587 return TimeZoneUtil::timeStampTzToTimeStamp(
588 TimeZoneUtil::getCurrentSystemTimeStamp(), getSessionTimeZone()).timestamp_date;
589}
590
591
592ISC_TIMESTAMP EngineCallbacks::getCurrentGmtTimeStamp()

Callers

nothing calls this directly

Calls 4

JRD_get_thread_dataFunction · 0.85
getTypeMethod · 0.45
getRequestMethod · 0.45
getLocalTimeStampMethod · 0.45

Tested by

no test coverage detected