Skip to content

ohryan.ca

A Web Developer in Winnipeg

Tag: time

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

2016

  • Peach Came From a Can

2014

  • The Nintendo WiiUnderated

2012

  • My Top 5 Podcasts of 2011

2011

  • Canadian Tech Roundup – Episode 9 – Netflix, CRTC, Shaw
  • Lunch-hour Link Log
  • How To: Get Better BitTorrent Speeds
  • The Web: Why Wasn’t I Consulted?

2010

  • Top 3 Board Games of 2009

2009

  • 3 Myths About Mac OS X [Updated!]
Proudly powered by WordPress | Theme: Independent Publisher 2 by Raam Dev.