Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::gmtime

 

std::gmtime is a time function.

 

#include <ctime>
#include <iostream>

int main ()
{
  std::time_t t;
  std::time(&t);
  const std::tm * const u = std::gmtime(&t);
  std::cout
    << u->tm_hour
    << ":"
    << u->tm_min;
}

 

 

 

 

 

External links

 

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict