ohryan.ca

A Web Developer in Winnipeg

  • privacy
  • How To Round Unixtime To Midnight

    May 28, 2008
    in Tips & How To’s

    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 pointing out my math ineptitude.


  • CushyCMS Adds Pro Version

    May 20, 2008
    in Apps

    CushyCMS, the free content management system, is now launching a Pro version of its service. For $28 per month, CushyCMS will provide branding support, a custom logo, colors and domain settings for web publishers that use its tools.

    via mashable

    Kinda thought that’s what they where going to do. Still a dumb product, IMHO.


  • Everybody Who Eats Needs To Watch This

    May 19, 2008
    in Random


←Previous Page Next Page→

Hi.

Hello, my name is Ryan! I’m a web developer in Winnipeg, Canada. I’ve been documenting my random thoughts and occasional bits of interesting code here since 2005. Twitter. Github. Instagram.

Recent Posts

  • Adventures in Vibe CodingMarch 23, 2026
  • Time for UsoniaJanuary 24, 2026
  • An EV in Winnipeg. In the Winter?December 30, 2025
  • Reblog of Dan Gillmor:December 11, 2025
  • Winnipeg: You’re Denser Than You ThinkDecember 10, 2025
  • (no title)December 8, 2025

Designed with WordPress