date and time operation
| From: | Ha Duy Thien | Date: | Fri, 17 Jan 2003 07:40:59 +0000 |
| Subject: | date and time operation | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17926@lists.php.net to get a copy of this message | ||
Hello everybody !
Does anybody here deal with date and time operation in php ?
If you don't mind, please show me they way to do this. I have some date and
time functions in ASP and now I have to convert it to PHP.
Here are some functions in ASP
yr = year(date())
mon = month(date())
currentmonth = cdate(yr & "-" & mon & "- 1")
start_week = weekday(currentmonth)
nextmonth = cdate(yr & "-" & nextmon & "- 1")
first_start_week = dateadd("d", 7, currentmonth)
ff_end_week = dateadd("d", -1, first_start_week)
diffaweek = datediff("w", first_start_week, nextmonth)
day(currentmonth)
day(ff_end_week)
Do you have any date and time class written in PHP, please share with me
Thanks you very much for your attention
Thien