|
Tuesday, January 24, 2006, 16:12 - Technology
Here's a little TCL script I wrote to output the week number of the financial year:
set intNow [clock seconds]
set intStartYear [clock format $intNow -format "%Y"]
set intThen [clock scan "6-April-$intStartYear"]
set intDuration [expr $intNow - $intThen]
if {$intDuration < 0} {
#The financial start year was last year
set intStartYear [expr $intStartYear - 1]
set intThen [clock scan "6-April-$intStartYear"]
set intDuration [expr $intNow - $intThen]
}
puts [concat "Week " [clock format $intDuration -format "%W"] " of financial year $intStartYear /" [expr $intStartYear + 1]]
And here it is in action:
% set intNow [clock seconds]
1138123975
% set intStartYear [clock format $intNow -format "%Y"]
2006
% set intThen [clock scan "6-April-$intStartYear"]
1144278000
% set intDuration [expr $intNow - $intThen]
-6154025
%
% if {$intDuration < 0} {
#The financial start year was last year
set intStartYear [expr $intStartYear - 1]
set intThen [clock scan "6-April-$intStartYear"]
set intDuration [expr $intNow - $intThen]
}
25381975
%
% puts [concat "Week " [clock format $intDuration -format "%W"] " of financial year $intStartYear /" [expr $intStartYear + 1]]
Week 42 of financial year 2005 / 2006
%
So this is the 42nd week of the finanical year.
add comment
( 265 views )
| 0 trackbacks
| permalink
|
|
Tuesday, January 10, 2006, 12:40 - Entertainment
I was watching The A-Team on some random cable channel last night - that brought back good memeories from when I was a kid! How did they manage to create so many weapons from someones garage?Anyways we were talking about it in the office when I remembered another classic from the same ere...
The Fall Guy - a top quality program with superb stunts.
Am I the only person who can remember this program?
timstvshowcase.com/fallguy.html

|
|
Thursday, January 5, 2006, 12:59 - Home
Remember the Memorial Stone I found in the Garden last year?I was pointed in the direction of www.scotlandspeople.gov.uk and searched for deaths of Duncan McFee around 1906.
I found it:
Part 1#

Part 2#

Note how the spelling is McFie luckly the website does a soundex search too.
So he was 66, lived in Newington, was in the Army and his father was a Private in the 25th Regiment - I can't read the writing though.
I think his wifes name was one an old title deed for our house, have to look that up. Perhaps try and find the register for her death.
"Year Surname / Maiden Name Forename Sex Age District City/County/MR GROS Data Image Extract
1906 MCPHIE DUNCAN M 66 NEWINGTON EDINBURGH CITY/MIDLOTHIAN 685/05 0304
"
|
|
Wednesday, January 4, 2006, 10:21 - Home
I snapped this frosty photo on the way to work this morning:
It's the 'Meadows Park' in Edinburgh.
Camera: XDAIIi
|
|
Friday, December 30, 2005, 15:43 - Technology
Alistair has started producing podcasts here.I have to say he's certainly got the voice of a Radio 2 presenter. Perhaps a 2nd career?
This is clearly something I'm going to have to have a go with in 2006, I don't think my voice comes over well though - I'll have to stick to silent movies ;-)
Here's the podcast I get a mention in:
www.itauthor.com/podcasts/index.php?id=5
|

IM Status




