Daylight Saving Time

E

Evertjan.

Dr John Stockton wrote on 23 aug 2006 in comp.lang.javascript:
You've prompted discussion with RHvG about our pages : alas, Moose Jaw
had DST in 1912, over 3 years before Shackleton.

your 1912:

From Mark Brader (2003-07-26):
[According to the Toronto Star] Orillia, Ontario, adopted DST
effective Saturday, 1912-06-22, 22:00; the article mentions that
Port Arthur (now part of Thunder Bay, Ontario) as well as Moose Jaw
have already done so. In Orillia DST was to run until Saturday,
31 (no time mentioned), but it was met with considerable
hostility from certain segments of the public, and was revoked after
only two weeks -- I copied it as Saturday, 1912-07-07, 22:00, but
presumably that should be -07-06. (1912-06-19, -07-12; also letters
earlier in June).

===

Thunder Bay region 1910 "probably"!

<http://sources.redhat.com/ml/libc-alpha/2004-07/msg00169.html>:

# Willett (1914-03) writes (p. 17) "In the Cities of Fort William, and
# Port Arthur, Ontario, the principle of the Bill has been in
# operation for the past three years, and in the City of Moose Jaw,
-# Saskatchewan, for one year." Assume that the Thunder Bay region
-# observed DST starting 1910, and Moose Jaw starting 1912, as this
-# matches the Toronto Star report about Moose Jaw. For lack of better
-# info, assume the Thunder Bay region used Willett's proposal, namely
-# third Sunday in April at 02:00 to third Sunday in September at
-# 03:00; also assume that they continued until Canada instituted
-# uniform DST in 1918.
-Rule Thunder 1910 1917 - Apr Sun>=15 2:00s 1:00 D
-Rule Thunder 1910 1917 - Sep Sun>=15 2:00s 0 S

===

"Before 1909"

<http://cvsup.pt.freebsd.org/cgi-
bin/cvsweb/cvsweb.cgi/src/share/zoneinfo/northamerica?rev=1.25>

# From David Bryan via Tory Tronrud, Director/Curator,
# Thunder Bay Museum (2003-11-12):
# There is some suggestion, however, that, by-law or not, daylight
# savings time was being practiced in Fort William and Port Arthur
# before 1909.... n 1910, the line between the Eastern and Central
# Time Zones was permanently moved about two hundred miles west to
# include the Thunder Bay area.... When Canada adopted daylight
# savings time in 1916, Fort William and Port Arthur, having done so
# already, did not change their clocks.... During the Second World
# War,... [t]he cities agreed to implement DST during the summer
# months for the remainder of the war years.

=====

"The waste of daylight" March 1914 pamflet, page 17:

<http://www.pettswoodvillage.co.uk/Daylight_Savings_William_Willett.pdf>

In the Cities of Fort William and Port Arthur, Ontario, the principle of
the bill has been in operation for the past three years, and in the City
of Moose Jaw, Saskatchewan, for one year.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Wed, 23
Aug 2006 06:07:28 remote, seen in Evertjan.
Dr John Stockton wrote on 23 aug 2006 in comp.lang.javascript:


Not in here: <http://www.merlyn.demon.co.uk/programs/> ??

No, in the root directory; remove the last 9 characters above, getting
.... .uk/$tab.htm .

I did not want to post the location /en clair/, lest it be found by
search engines.

I have T8, the function for standard tabs, fairly well consolidated now;
still thinking about the properties of yours.
 
E

Evertjan.

Dr John Stockton wrote on 23 aug 2006 in comp.lang.javascript:
still thinking about the properties of yours.

#3:

<script type='text/javascript'>

function tabber(lines,tabarr){ // Evertjan 3
// lines needs one tabbed line or array of those lines
// tabbarray is default [8], or specified array, or number
// .. and recycles when too short
var result ='',t,tba,res,j,tabl,tabc;
lines = (!lines[0])?[lines]:lines;
tba = tabarr || [8]; // line now outside loop
if (!tba[0]) tba = [tba]; // ADDED: simple number allowed
for (var i=0;i<lines.length;i++) {
tabc = tabl = 0;
res = '';
t = lines.split('\t');
for (j=0;j<t.length;j++) {
res += t[j];
tabl += tba[tabc++] || tba[tabc=0];
while (res.length<tabl && j<t.length-1) // CHANGED line
res += '_'; // should be changed to space finally
};
result += res + '<br>';
};
nm = '1234567890';nm+=nm+nm+nm+'<br>';
// nm = '';
//return result.replace(/ /g,'&nbsp;');
return '<pre>'+nm+result+'<\/pre>';
}

// =========== testing:

r = tabber([
'Hello\tWorld\t12345',
'This\tis a\ttest in tabbing'
]);
document.write(r);

r = tabber([
'Hello\tWorld\t12345',
'This\tis a test\tin tabbing'
],
[12,20]
);
document.write(r);

r = tabber('Hi\tthere',19); // CHANGED: simple number allowed
document.write(r);

</script>
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Thu, 24
Aug 2006 07:43:14 remote, seen in Evertjan.
Dr John Stockton wrote on 23 aug 2006 in comp.lang.javascript:

#3:


There's still a fundamental difference, illustrated in "Different
Classes of Behaviour" on the page by

function XXX() { var J, A = [PT8, Tabber3], F
var S1 = "123\t123\txyz\t11\t12", S2 = "abcdefghij" + S1
for (J in A) { F = A[J]
document.writeln(FuncName(F), " :\n", F(S1), "\n", F(S2)) } }

the output of which is basically

PT8 :
123 456 xyz 11 12
abcdefghijk123 456 xyz 11 12

Tabber3 :
123_____456_____xyz_____11______12
abcdefghij123456kxyz____11______12

Mine always moves ahead to the next stop; yours, although more flexible,
is different with text too long for its field. (By using do...while to
insert spaces, you could ensure a minimum of one space between fields; I
think that really does need to be provided, though perhaps optional.)
 
E

Evertjan.

Dr John Stockton wrote on 25 aug 2006 in comp.lang.javascript:
Mine always moves ahead to the next stop; yours, although more flexible,
is different with text too long for its field. (By using do...while to
insert spaces, you could ensure a minimum of one space between fields; I
think that really does need to be provided, though perhaps optional.)

Certainly a good plan, that effect was accidenally lost half way the
development of tabber().

================

I am more interested to change a multiline tabbed text into a html <table>.
Such text is the result of copy/pasting a MS-word table to an editor. MS-
word cannot make decent html itself.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Mon, 21
Aug 2006 23:34:07 remote, seen in Dr John
Stockton said:
I'd only want to expand tabs to spaces (putting HTML in could be done in
a wrapper), and I was intending to set tab stops at 8N+1 - but having an
array of tabs could be useful.

If anyone has a browser that does not always display TAB in <pre> and
<textarea> as 1..8 spaces to bring the length so far to a multiple of 8
and should happen to notice corresponding layout errors anywhere on my
site, I'd be grateful to hear which parts of the site are affected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top