2
/////////////////////////////////////////////////////////
4
// include/ryosdates.inc
6
// (C)Copyright 2000-2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
8
// This file is part of IlohaMail. IlohaMail is free software released
9
// under the GPL license. See enclosed file COPYING for details, or
10
// see http://www.fsf.org/copyleft/gpl.html
12
/////////////////////////////////////////////////////////
14
/********************************************************
17
Miscellaneous date/time related functions, most of which are more or less useless.
18
Acts as a place holder for all the dates Ryo never had.
22
Ryo still has no dates
24
What, you want me to comment on that?
26
********************************************************/
28
function GetCurrentMonth(){
30
$theDate=getdate($theTime);
35
function GetCurrentDay(){
37
$theDate=getdate($theTime);
42
function GetCurrentYear(){
44
$theDate=getdate($theTime);
49
function GetCurrentHour(){
51
$theDate=getdate($theTime);
52
$hour=$theDate[hours];
56
function GetCurrentMinute(){
58
$theDate=getdate($theTime);
59
$minute=$theDate[minutes];
63
function GetCurrentSeconds(){
65
$theDate=getdate($theTime);
66
$minute=$theDate[seconds];
70
function GetDateString($mode){
72
$theDate=getdate($theTime);
76
$hour=$theDate[hours];
77
$minute=$theDate[minutes];
80
if ($mode="MMDDYYYY"){
81
return $month."-".$day."-".$year;
87
function GetLastDayOfMonth($m){
88
if (($m==1)||($m==3)||($m==5)||($m==7)||($m==8)||($m==10)||($m==12)){
90
}else if (($m==4)||($m==6)||($m==9)||($m==11)){
93
$year=GetCurrentYear();
96
else if (($year%4)==0){
107
function PreviousMonth($m){
113
function NextMonth($m){
119
function NumToTimeString($i){
b'\\ No newline at end of file'