Monthly Archives: April 2014

Ramblings

Ramble #1

One day, I want to write a sitcom with some of my favorite people. Alas, it’ll probably never come to pass. I’m focusing on work right now, but even if there is a day when I take a less hectic job, I’ll likely never be able to produce it. Judging by how long it took to make a really short film, I don’t know how long it’d take to produce a season of something. Animation was another option since some people live in far away places. However, I can’t even draw, and that takes even longer than acting, so that’s probably out too. Very recently I have been pondering doing a radio show instead. I don’t even know how that’d work. TV is the medium with which I’m most familiar, and it’s the one I love the most.

Ramble #2

I’d like to spend more time philosophizing. Work has lately been mostly reactive. I need more time to just sit back and think. The mornings may be the best time for that. I was going to do it now but I just want to sleep.

Ramble #3

I’d like to simply spit out my thoughts and talk in circles instead of creating coherent essays. That’s what a blog is for, right?

Time Zones and Rails

Local

irb(main):006:0> date = “2014-04-01”
=> “2014-04-01”
irb(main):007:0> begin_str = “#{date.to_s} #{TimeOfDay.new(0,0,0)} America/Los_Angeles”
=> “2014-04-01 00:00:00 America/Los_Angeles”
irb(main):008:0> begin_day = Time.strptime(begin_str, “%Y-%m-%d %H:%M:%S %Z”).utc
=> 2014-04-01 07:00:00 UTC

Production

irb(main):001:0> date = “2014-04-01”
=> “2014-04-01”
irb(main):002:0> begin_str = “#{date.to_s} #{TimeOfDay.new(0,0,0)} America/Los_Angeles”
=> “2014-04-01 00:00:00 America/Los_Angeles”
irb(main):003:0> begin_day = Time.strptime(begin_str, “%Y-%m-%d %H:%M:%S %Z”).utc
=> 2014-04-01 00:00:00 UTC

*headdesk*