Skip to content

Commit

Permalink
extended
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Feb 17, 2017
1 parent f3e1078 commit c8a9df0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion local/london.cpp
Expand Up @@ -42,7 +42,9 @@ void oldschool(const std::string& s) {
struct tm tm;
strptime(s.c_str(), fmt, &tm);
time_t t = mktime(&tm);
std::cout << "C library secs : " << t << std::endl;
std::cout << "C library secs : " << t << " "
<< "secs off: " << tm.tm_gmtoff << " "
<< "tmzone " << tm.tm_zone << std::endl;
}

int main(int argc, char *argv[]) {
Expand Down

0 comments on commit c8a9df0

Please sign in to comment.