追蹤
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];
}


  • 24988

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

3/7 高雄PG-河堤公園

2月份的PG都沒參加,這次當然不能再錯過囉~ 此次PG的地點在高雄河堤公園, 自從恩姨看到我部落格裡面的照片後一直想跟, 剛好恩姨有休假,就邀他帶保羅一起參加, 這一次參加的人很多,從最小的4個月到最大5歲吧!
原本是想說趁這個機會也可以讓保羅和同年紀的同伴一起玩, 不過似乎他只沈迷於溜滑梯上,跟其他小朋友互動很少說. 或許是第一次,和大家還不熟,下次再叫恩姨排休假,再一起出去玩囉~ ↑保羅玩得很開心,一直說還要再玩一次,
↑小冰姨姨幫小恩拍的照片
↑小冰姨幫保羅拍的照片,用單眼的果然不一樣,當然還要歸功於小冰姨技術好囉~
↑很喜歡這張照片,小冰姨把我們拍得好自然,好美喔~
↑中午到附近的餐廳用餐,我們把整間餐廳幾乎都佔滿了.
↑配合的二位媽咪,跟不配合的二個寶寶,還蠻好玩的.
↑離開前再去小明的媽強力推薦的麵包店,它們的麵包真的蠻好吃的.
下一次高雄PG 3/21日又在固定的兒美館,這一次我應該可以參加吧! 因為高雄捷運通車了,我可以坐捷運去參加了, 不過小恩乾媽好像要來看小恩耶!所以還未知, 敬請期待囉~
相簿設定
標籤設定
相簿狀態