time() or better?
From: Inuyasha4Life (NoSpam_at_Please.com)
Date: 03/30/04
- Next message: DB McGee: "Re: time() or better?"
- Previous message: Inuyasha4Life: "Re: Shopping Cart"
- Next in thread: DB McGee: "Re: time() or better?"
- Reply: DB McGee: "Re: time() or better?"
- Reply: Phil Mony: "Re: time() or better?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 22:04:19 -0500
Well I'm trying to store the join date of my users. Unfortunately, I can't
seem to be able to figure out how to get the current date and store it
well. I figured storing the result of time() would work, but it's not going
as well as planned. I can't seem to convert that value into a user-readable
date. I thought it was as simple as dividing (and it was, I think, until it
got down to the years, which returned something in the 300s.) I thought
time was supposed to return seconds since Jan 1, 1970? Wow I got confused.
Is there an easier function to use or does someone have a snippet of code I
can use?
Thanks for any help
-- Inuyasha4Life
PHP 4.1 with MySQL on SuSE 9.0 i686
- Next message: DB McGee: "Re: time() or better?"
- Previous message: Inuyasha4Life: "Re: Shopping Cart"
- Next in thread: DB McGee: "Re: time() or better?"
- Reply: DB McGee: "Re: time() or better?"
- Reply: Phil Mony: "Re: time() or better?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|