Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rjbs (4671)

  (email not shown publicly)
AOL IM: RicardoJBSignes (Add Buddy, Send Message)
Yahoo! ID: RicardoSignes (Add User, Send Message)

I'm a Perl coder living in Bethlehem, PA and working Philadelphia. I'm a philosopher and theologan by training, but I was shocked to learn upon my graduation that these skills don't have many associated careers. Now I write code.

Journal of rjbs (4671)

Monday October 23, 2006
10:11 PM

enough time manipulation for now

[ #31398 ]

I might go ahead and write a few tests, just to ensure that everything that I think works, works, now and forever. Apart from that, I think I've spent enough of the last few days writing obsessively silly code to support my RPG.

On my way home on the bus, I finally got the last few kinks worked out of negative offsets, so that both of these commands work. (Note that output has been cropped to hide secrets from any players reading my journal!)

~/Documents/rjbs/docs/deliverance$ ./code/when -- 1.213
offset: 1.213
offset s: 35213875.2
standard: 1:03:16:13:37:55

~/Documents/rjbs/docs/deliverance$ ./code/when -- -1.213
offset: -1.213
offset s: -35213875.2
standard: -2:10:13:10:22:04

I wonder what the calendar will look like in the future. I don't see it changing much in my lifetime, but it certainly is annoying to deal with, and once we're not worried about the sun and moon as much, maybe we really will use something simpler. I doubt it, though. I bet we'll end up with a bunch of different, complicated calendars, one for each settled colony. I was extremely grumpy the last time I "had to" write my own time zone conversion code; I can only imagine how annoying it will be to convert between Alpha Centari I Meridian Summer Time and Western European Standard Time -- and don't forget to resync your hardware clock after exiting FTL space!

Here's hoping I live to fix a bug in that code.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I enjoyed hearing about this. It gives me encouragement to getting around to writing my own implementation for my own weird calendar. :) (Only all of my calendar objects will have to keep track of a longitude/latitude object internally ... fun :) )

    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers