Date sequence program updated 2008-09-21
Please use MSIE to view this page
Number sequence? Easy!   Program list
Date sequence? Please click here.
A useful Javascript function.

<a name=Box1>

Box 1   Bignews.org htm URL output box

<a name=Box2>
box 2   Bignews.org txt URL output box

<a name=Box3>                    
box 3   Box for no published date.

<a name=Box4> Freeman write this program using MSIE 6.0
Tested MSIE 5.0 OK. Other browser may not work. 9709142214
This program handle date sequence. For number sequence
please visit http://freeman2.com/jsinber2.htm
Begin date, End date box use ROC year or western year? that is
determined by the check box marked "Whether box above use
ROC years? checked is yes blank is no" If string has alphabet
or contain "/" or contain "-" program default western year. But
you can still click change. Program check only begin date.
It is user's responsibility to use same type date in end box.

Box below determine output left date sequence. 9709091150
Begin date input box
End date   input box
If above boxes use ROC year? Checked is yes, blank is no.

string before date
string after date  

Sep. String   Max Iter.
year 1990 keep '19'?  checked yes, blank no
output to ROC year? checked yes, blank no

box 4   One date (left date) output box

Box 4 is upside-down reverse input box. Click 'reverse3' button
get output at box3. Click 'reverse4' button get output at box4.
Click "merge34" or "reverse example" button, output to box 5.
gap
<a name=Box5> Below determine right date sequence. 9709091845
Begin date input box
End date   input box
If above boxes use ROC year? Checked is yes, blank is no.
           
string before date
string after date  
Sep. String   Max Iter.
year 1990 keep '19'?  checked yes, blank no
output to ROC year? checked yes, blank no
Year Equivalence can be made between any two calendar systems.
Program need to know host year that equal to guest year1.
Please input this value (pivot year)   (default is guest
Republic of China calendar relative to host western calendar)

box 5   Two date (right date) output box

When test run, please make sure that "1990 change to 90" NOT
show up
, click and see "1990 keep as 1990", you will get what
you want to see. Otherwise output is a puzzle. Year 2000+ no cut.
year earlier than 1970 NO -1900, 1969 keep as 1969, not cut 19.

<a name=Box6>
Test 2008-02-15 or 97,02,15 convert to "Fri Feb 15 11:00:00 PST 2008"
Debug input box
box 6   debug output box

Pivot year   Max Iter
<a name=YrEquivTable>   9709172058 build <table>
A useful Javascript function a2zYear(a2z1,a2z2,a2z3){...}
Year Equivalence input boxes YEbox 1,2,3 & 4th is output box.
input method one
input method two
pivot year (not 0, not 1) put 0 or 1
guest year (not 0) negative OK pivot year (not 0)
host year (not 0) negative OK host or guest year (not 0)
Answer: true or false guest or host year. Answer
The calendar which present year1, is guest calendar.
The calendar which use non-year1 to match, is host calendar.
Pivot year is host year that equal to guest year1. All year can
not be zero. If you like it, find "function a2zYear(" from source.
9709172150 done table


<a name=worknote>
This program Chinese version list 2643 web page links,
first upload hard code, file size is 179,338 bytes. (Unicode)
Now change to J.S. code, do the same job, but file
size reduce to 14,078 bytes. (Unicode)
97,09,08,18,59
..... Java must be a wonderful place!
      I want visit Java someday ..... 9709101852

After increase box1 to box5, file size increase to
57,316 bytes (Unicode, still possible change size)
97,09,10,18,52

After add one day sequence and two day sequence function
file size is 73,220 bytes. (Unicode)
    97,09,04,22,02
2008-09-04-22-02 start write this program
    97,09,11,19,39
2008-09-11-19-39 done proof read

From 2008-09-12 to 2008-09-14 modify program let ROC year
no longer limit to two digits and three digits (10->999)
Program allow handle ROC -1812 years, same as western year.
Added reverse order function and left-right merge function.
File size is 95,198 bytes (Unicode) 9709141743

From 2008-09-15 to 2008-09-17 think and write a2zYear()
function. Now file size is 68,651 bytes (ANSI code)
2008-09-17-19-30
<a name=9709211435>
2008-09-21-14-35
On 2008-09-20-13-34 upload this program jsdayseq.htm
to http://freeman2.com/jsdayseq.htm
Still not feel confortable, On 2008-09-20-18-54 start
write code to check function a2zYear(a2z1,a2z2,a2z3)
Now (2008-09-21-14-39) check section is done and
result (see box 6) is OK. function a2zYear() should
be no problem.   Freeman 2008-09-21-14-41


Program list http://freeman2.com/jsindex2.htm


Address of this file is
http://freeman2.com/jsdayseq.htm
Chinese version address is
http://freeman2.biz/a1/dckmulu1.htm

This page Chinese version is created on 2008-09-04
English version is created on 2008-09-15
Here is the end of page. Thank you for visiting.
Freeman 2008-09-15-18-05 (done translation)