.. oe:namespace:: OEPlatform

.. meta::
   :keywords: OECurrentTime

.. oe:function:: OECurrentTime

   .. oe:language:: c++

      .. oe:api::

         std::string OECurrentTime()
         bool OECurrentTime(struct tm* timeinfo)

      The first overload of this function that takes no arguments
      returns the current local time in the following format:

      ::

         Thu Nov 24 18:22:48 1986\n

      An empty string will be returned if the function fails.

      The second overload will place the current local time into the
      ``timeinfo`` struct. If that fails, ``false`` will be returned.

   .. oe:language:: csharp java python

      This function is only available in C++.
