追蹤
6.5公分的小腳ㄚ
關於部落格


var today = new Date();
var year = today.getYear();
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 = 4;
var b_dd =7;

t_yy = year - b_yy - 1;

if ( month + 1 > b_mm)
{ t_mm = month - b_mm ;
t_yy++;
}
else
t_mm = 12 - b_mm + month;

if (day > b_dd)
{ t_dd = day - b_dd;
t_mm++;
}
else
t_dd = daysInMonth(month, year) - b_dd + day;

if (t_dd > daysInMonth(month, year)-1)
{ t_dd = 0;
t_mm++;
}

if (t_mm > 11)
{ t_mm = 0;
t_yy++;
}

document.write(" 小恩哥哥已經 ");

if (t_yy > 0)
document.write(" " + t_yy + " 歲 ");

if (t_mm > 0)
document.write(t_mm + " 個月");

if (t_dd > 0)
document.write(" 又 " + t_dd + " 天") ;

//****** function set ******

function arrayOfDayInMonths(isLeapYear)
{ this[0] = 31;
this[1] = 28;
if (isLeapYear)
this[1] = 29;
this[2] = 31;
this[3] = 30;
this[4] = 31;
this[5] = 30;
this[6] = 31;
this[7] = 31;
this[8] = 30;
this[9] = 31;
this[10] = 30;
this[11] = 31;
}

function daysInMonth(month, year)
{ var isLeapYear = ((( year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0));
var monthdays = new arrayOfDayInMonths(isLeapYear);
return monthdays[month];
}






var today = new Date();
var year = today.getYear();
var month = today.getMonth();
var day = today.getDate();
var t_yy = 0;
var t_mm = 0;
var t_dd = 0;
var b_yy = 2008;
var b_mm = 11;
var b_dd =1;

t_yy = year - b_yy - 1;

if ( month + 1 > b_mm)
{ t_mm = month - b_mm ;
t_yy++;
}
else
t_mm = 12 - b_mm + month;

if (day > b_dd)
{ t_dd = day - b_dd;
t_mm++;
}
else
t_dd = daysInMonth(month, year) - b_dd + day;

if (t_dd > daysInMonth(month, year)-1)
{ t_dd = 0;
t_mm++;
}

if (t_mm > 11)
{ t_mm = 0;
t_yy++;
}

document.write(" 芸芸妹妹已經 ");

if (t_yy > 0)
document.write(" " + t_yy + " 歲 ");

if (t_mm > 0)
document.write(t_mm + " 個月");

if (t_dd > 0)
document.write(" 又 " + t_dd + " 天") ;

//****** function set ******

function arrayOfDayInMonths(isLeapYear)
{ this[0] = 31;
this[1] = 28;
if (isLeapYear)
this[1] = 29;
this[2] = 31;
this[3] = 30;
this[4] = 31;
this[5] = 30;
this[6] = 31;
this[7] = 31;
this[8] = 30;
this[9] = 31;
this[10] = 30;
this[11] = 31;
}

function daysInMonth(month, year)
{ var isLeapYear = ((( year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0));
var monthdays = new arrayOfDayInMonths(isLeapYear);
return monthdays[month];
}


  • 24987

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

小恩一歲六個月了

上個禮拜去醫院安胎了一個晚上,幸好只有一個晚上,
回家後大家都叫我要好好的休息,
所以大部份時間小恩都不是我在帶,
本來想說我沒在他身邊他會不會哭鬧,
沒想到他竟然出忽意料的安靜,
害我有點小難過,不過另一方面也覺得很安慰,
我的寶寶真的長大了,能體諒媽媽的不適而乖乖的.
只是每次想到小恩的爺爺來接他,
而他很開心的舉起手來跟我拜拜時,
心情還是有點小沮喪,
一瞬間覺得我和他一年半來的連接,
似乎變得有點薄弱,
或許這就是他長大的證明吧!
不再是只會黏在媽媽身邊的小跟屁蟲了.


最近小恩會講的話愈來愈多了,而且也愈來愈愛講話了,
火星語還是佔大多數,不過地球話的字彙也變多了,
常常拿著玩具電話就一直說不停,
而且超會搶電話的,如果電話不給他聽還會生氣,
不過每次都只看到他聽,不講,
唉~那麼愛講玩具電話,為什麼真的電話就不講呢?


最近的表情也愈來愈豐富了,
可惜一看到相機就拼命的想搶相機,
所以沒辦法拍下一些經典的表情,
就只好留在我的回憶裡了.


小恩一歲六個月了,覺得時間過得好快,
或許一眨眼的他就要上幼稚園了...
相簿設定
標籤設定
相簿狀態