タグ

2012年3月13日のブックマーク (2件)

  • Date - JavaScript | MDN

    標準組み込みオブジェクトDateコンストラクターDate() コンストラクター静的メソッドDate.now()Date.parse()Date.UTC()インスタンスメソッドDate.prototype[@@toPrimitive]Date.prototype.getDate()Date.prototype.getDay()Date.prototype.getFullYear()Date.prototype.getHours()Date.prototype.getMilliseconds()Date.prototype.getMinutes()Date.prototype.getMonth()Date.prototype.getSeconds()Date.prototype.getTime()Date.prototype.getTimezoneOffset()Date.prototype.

    Date - JavaScript | MDN
    taizooo
    taizooo 2012/03/13
    Date 難しい
  • darekagakaku random - Hatena::Let

    by taizooo 2012-03-29 [2012/03/29 18:25:30] darekagakaku nikki wo random ni hyouji /* * @title darekagakaku random * @description darekagakaku nikki wo random ni hyouji * @include http://darekagakaku.herokuapp.com/* * @license MIT License */ function trim(num, l) { if (num < 0) { num = -(num); } if (typeof (num) != 'string') { num = '' + num; } var s = l - num.length; while (s > 0) { num = '0' + n

    taizooo
    taizooo 2012/03/13
    日付順に見たいと思ったけどそれはちょっと違うぽかったので random に表示する