mithriltabby: Hurricane from space (Foom)
[personal profile] mithriltabby
Background: I’m writing a script to read data out of ClearCase history records. The format code %Nd is used to get the maximally specific timestamp for an operation, in yyyymmdd.hhmmss format. The lshistory command accepts a parameter -since that allows you to see all records that have been entered since a given timestamp. And -since insists that its long date format look like dd-month-[yy]yy.[h]h:[m]m:[s]s, which means that if I want to grab the most recent record and stash its timestamp to use as the -since for the next query, I have to rearrange it.

Somehow, I suspect that I will be required to redact this comment before we ship a script containing it:

# $when is in yyyymmdd.hhmmss format.  It is, of course, invalid as input
# to "-since", because that would be presenting a consistent interface,
# which would doubtless violate some engineer's Dark Pact and cause their
# soul to be claimed immediately.

Hah!

Date: 2006-08-23 12:27 am (UTC)
From: [identity profile] danine.livejournal.com
A wonderful example of presenting technogeek humor so the rest of us can get it. (And it didn't even give me a migrane... as C++ and calculus do on sight!)

Re: Hah!

Date: 2006-08-23 08:45 am (UTC)
From: [identity profile] cmccurry.livejournal.com
Very well done. My compliments.

October 2025

S M T W T F S
   1234
5678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

  • Style: Midnight for Heads Up by momijizuakmori

Expand Cut Tags

No cut tags
Page generated Jan. 26th, 2026 09:47 pm
Powered by Dreamwidth Studios