<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>小小妤的BLOG</title>
<link>http://blog.yam.com/yolanda421</link>
<description>
yolanda的成長日誌
   
 

var today = new Date();
var year = today.getFullYear();
var month = today.getMonth();
var day = today.getDate();
var t_yy = 0;
var t_mm = 0;
var t_dd = 0;

var b_yy = 2007;
var b_mm = 09;
var b_dd = 04;


t_yy = year - b_yy - 1;

if ( month + 1 &gt; b_mm)
{ t_mm = month - b_mm ;
t_yy++;
}
else
t_mm = 12 - b_mm + month;

if (day &gt; b_dd)
{ t_dd = day - b_dd;
t_mm++;
}
else
t_dd = daysInMonth(month, year) - b_dd + day;

if (t_dd &gt; daysInMonth(month, year)-1)
{ t_dd = 0;
t_mm++;
}

if (t_mm &gt; 11)
{ t_mm = 0;
t_yy++;
}

document.write(&quot;可愛的小小妤已經~&quot;); 

if (t_yy &gt; 0)
document.write(&quot; &quot; + t_yy + &quot; 歲 &quot;);

if (t_mm &gt; 0)
document.write(t_mm + &quot; 個月&quot;);

if (t_dd &gt; 0)
document.write(&quot; 又 &quot; + t_dd + &quot; 天!!&quot;) ;


//****** function set ******

function arrayOfDayInMonths(isLeapYear) 
{ 
this[0] = 31; 
this[1] = 31; 
this[2] = 28; 
if (isLeapYear) 
this[2] = 29; 
this[3] = 31; 
this[4] = 30; 
this[5] = 31; 
this[6] = 30; 
this[7] = 31; 
this[8] = 31; 
this[9] = 30; 
this[10] = 31; 
this[11] = 30; 
}



function daysInMonth(month, year)
{ var isLeapYear = ((( year % 4 == 0) &amp;&amp; (year % 100 != 0)) || (year % 400 == 
0));
var monthdays = new arrayOfDayInMonths(isLeapYear);
return monthdays[month];
}
  
   
</description>
<language>zh-tw</language>
<generator>blog.yam.com</generator>
<copyright>All Rights Reserved</copyright>
</channel>
</rss>