libdigidocpp
digidoc::util::date Namespace Reference

Functions

std::string xsd2string (const xml_schema::DateTime &time)
xml_schema::DateTime currentTime ()
xml_schema::DateTime makeDateTime (const std::time_t &time)
xml_schema::DateTime makeDateTime (const struct tm &lt)

Detailed Description

Implements some date and time things specifically dedicated for BDoc.

Author
Andrus Randveer, Vambola Kotkas

Function Documentation

xml_schema::DateTime digidoc::util::date::currentTime ( )
Returns
current time

Definition at line 59 of file DateTime.cpp.

References makeDateTime().

Referenced by digidoc::SignatureBES::prepareSignedInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

xml_schema::DateTime digidoc::util::date::makeDateTime ( const std::time_t &  time)
xml_schema::DateTime digidoc::util::date::makeDateTime ( const struct tm &  lt)

Definition at line 75 of file DateTime.cpp.

std::string digidoc::util::date::xsd2string ( const xml_schema::DateTime &  time)

Dedicated helper for converting xml-schema-style DateTyme into a Zulu-string.

Parameters
timeGMT time as code-synth xml-schema type.
Returns
a string format of date-time e.g. "2007-12-25T14:06:01Z".

Definition at line 37 of file DateTime.cpp.

Referenced by digidoc::SignatureTM::getProducedAt(), digidoc::SignatureDDOC::getProducedAt(), and digidoc::Signature::getSigningTime().

Here is the caller graph for this function: