time() or better?

From: Inuyasha4Life (NoSpam_at_Please.com)
Date: 03/30/04


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



Relevant Pages

  • Re: Using MS SQL Function in VB.Net 2003
    ... What I'm looking for is a snippet or example of code showing how to execute ... a SQL command in a class, then store the output in a variable. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need position tracking software with advanced features
    ... but they didn't track the snippet. ... which also take the SE-description from ... serps and store it? ...
    (alt.internet.search-engines)
  • javamail pop Store SBC problem
    ... but get Store to authenticate. ... and I've used Javamail previously but not with this host/Server. ...
    (comp.lang.java.programmer)
  • Re: time() or better?
    ... Phil ... > Well I'm trying to store the join date of my users. ... > Is there an easier function to use or does someone have a snippet of code ...
    (alt.php)
  • Re: Multi-line abbreviations ARE possible in VIM !
    ... > it is *much* easier and more manageable to simply store 'snippets' in ... > standalone text files, and *then* create ... > abbreviations that simply read in the content of the different ... I do not have to 'massage' the snippet ...
    (comp.editors)