Date_Calc::nextWeekday($this->day, $this->month, $this->year, "%Y-%m-%d"); $date = sprintf("%s %02d:%02d:%02d", $day, $this->hour, $this->minute, $this->second); $newDate = new Date(); $newDate->setDate($date); return $newDate; } // }}} // {{{ getPrevWeekday() /** * Get a Date object for the weekday before this one * * Get a Date object for the weekday before this one. * The time of the returned Date object is the same as this time. * * @access public * @return object Date Date representing the previous weekday */ function getPrevWeekday() { $day = Date_Calc::prevWeekday($this->day, $this->month, $this->year, "%Y-%m-%d"); $date = sprintf("%s %02d:%02d:%02d", $day, $this->hour, $this->minute, $this->second); $newDate = new Date(); $newDate->setDate($date); return $newDate; } // }}} // {{{ getYear() /** * Returns the year field of the date object * * Returns the year field of the date object * * @access public * @return int the year */ function getYear() { return (int)$this->year; } // }}} // {{{ getMonth() /** * Returns the month field of the date object * * Returns the month field of the date object * * @access public * @return int the month */ function getMonth() { return (int)$this->month; } // }}} // {{{ getDay() /** * Returns the day field of the date object * * Returns the day field of the date object * * @access public * @return int the day */ function getDay() { return (int)$this->day; } // }}} // {{{ getHour() /** * Returns the hour field of the date object * * Returns the hour field of the date object * * @access public * @return int the hour */ function getHour() { return $this->hour; } // }}} // {{{ getMinute() /** * Returns the minute field of the date object * * Returns the minute field of the date object * * @access public * @return int the minute */ function getMinute() { return $this->minute; } // }}} // {{{ getSecond() /** * Returns the second field of the date object * * Returns the second field of the date object * * @access public * @return int the second */ function getSecond() { return $this->second; } // }}} // {{{ setYear() /** * Set the year field of the date object * * Set the year field of the date object, invalid years (not 0-9999) are set to 0. * * @access public * @param int $y the year */ function setYear($y) { if ($y < 0 || $y > 9999) { $this->year = 0; } else { $this->year = $y; } } // }}} // {{{ setMonth() /** * Set the month field of the date object * * Set the month field of the date object, invalid months (not 1-12) are set to 1. * * @access public * @param int $m the month */ function setMonth($m) { if ($m < 1 || $m > 12) { $this->month = 1; } else { $this->month = $m; } } // }}} // {{{ setDay() /** * Set the day field of the date object * * Set the day field of the date object, invalid days (not 1-31) are set to 1. * * @access public * @param int $d the day */ function setDay($d) { if ($d > 31 || $d < 1) { $this->day = 1; } else { $this->day = $d; } } // }}} // {{{ setHour() /** * Set the hour field of the date object * * Set the hour field of the date object in 24-hour format. * Invalid hours (not 0-23) are set to 0. * * @access public * @param int $h the hour */ function setHour($h) { if ($h > 23 || $h < 0) { $this->hour = 0; } else { $this->hour = $h; } } // }}} // {{{ setMinute() /** * Set the minute field of the date object * * Set the minute field of the date object, invalid minutes (not 0-59) are set to 0. * * @access public * @param int $m the minute */ function setMinute($m) { if ($m > 59 || $m < 0) { $this->minute = 0; } else { $this->minute = $m; } } // }}} // {{{ setSecond() /** * Set the second field of the date object * * Set the second field of the date object, invalid seconds (not 0-59) are set to 0. * * @access public * @param int $s the second */ function setSecond($s) { if ($s > 59 || $s < 0) { $this->second = 0; } else { $this->second = $s; } } // }}} } // }}} /* * Local variables: * mode: php * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * End: */ ?>color="#FFFFFF">HOME PAGE INFOREIKI

 

REIKI DI USUI
http://www.reiki-usui.it/links.asp

 

TABLAS CHAKRAS