Skip to content

ohryan.ca

A Web Developer in Winnipeg

Tag: math

How To Round Unixtime To Midnight

This might be pretty obvious to anyone with basic math skills. It took me a few minutes to figure out, so I thought I'd share with the world. To round a unix timestamp to the previous midnight (UTC) use the following function: function unixtime_round_to_midnight ($t) { return $t - ($t%86400); } Thanks to Ian for … Continue reading How To Round Unixtime To Midnight →

Ryan Neudorf Tips & How To's Leave a comment May 28, 2008May 22, 2016 1 Minute

About Me

I'm a web developer in Winnipeg, Canada. I've been documenting my random thoughts and occassional bits of interesting code here for 15 years. Enjoy.

  • Twitter
  • Instagram
  • GitHub

Categories

  • Apps
  • Canadian Tech News
  • Coffee Shop Laptop Friendliness Guide
  • Culture
  • Design
  • essay
  • Freelancing
  • Google
  • Links
  • People Suck At Email
  • Podcasts
  • Random
  • Review
  • Site News
  • Tips & How To's
  • Uncategorized
  • Web Development
  • Websites
  • Winnipeg
  • WordPress

Historial Content

2010

  • Winnipeg’s Golden Era

2008

  • Google’s Grand Central Offline
Proudly powered by WordPress | Theme: Independent Publisher 2 by Raam Dev.