Guest User

Untitled

a guest
Jun 28th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. static void time_t_to_dos_time(time_t user_supplied_time_t, int *dos_date, int *dos_time)
  2. {
  3. struct tm *t = localtime(&user_supplied_time_t);
  4.  
  5. *dos_time = t->tm_sec / 2 + t->tm_min * 32 + t->tm_hour * 2048;
  6. *dos_date = t->tm_mday + (t->tm_mon + 1) * 32 +
  7. (t->tm_year + 1900 - 1980) * 512;
  8. }
  9.  
  10. HTTP/1.1 502 Bad Gateway
  11. Content-Length: 13
  12. Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'
  13. Strict-Transport-Security: max-age=31536000
  14. Vary: Authorization,Accept-Encoding
  15. X-Content-Type-Options: nosniff
  16. X-Frame-Options: deny
  17. X-XSS-Protection: 1; mode=block
  18. Date: Tue, 28 Jun 2016 12:59:10 GMT
  19.  
  20. 502: Failure
Add Comment
Please, Sign In to add comment