Skip to content

Instantly share code, notes, and snippets.

@schwern
Created March 2, 2010 00:06
Show Gist options
  • Save schwern/318964 to your computer and use it in GitHub Desktop.
Save schwern/318964 to your computer and use it in GitHub Desktop.
#include <time.h>
#include <stdio.h>
int main() {
time_t now = -4136232677718LL;
printf("%lld\n", (long long int)timegm(gmtime(&now)));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment