php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15707 suggestion to Document about time() and other "Date and Time functions"
Submitted: 2002-02-25 00:11 UTC Modified: 2002-04-28 20:13 UTC
From: Xuefer at 21cn dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.1.1 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2002-02-25 00:11 UTC] Xuefer at 21cn dot com
why isn't there any suggestion/guide to the web-developers
that we should use unix timestamp for internal processing
and allowing convert in input/output

almost every c/c++ programmer would think,
it's fooly yet funny to operate TIME using STRING format
also in low speed



i've read so many codes when they calc the time_diff
mktime(..substr($time, 0, 4) - substr(..)..... blah... blah);


i'm using unix timestamp in my hold website, and output in certain format as I like. it's simple yet enough!
i'm afraid it's only needed by mysql to store string-format timestamp(mysql timestamp) that we can search by month or year and others

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-06 13:23 UTC] Xuefer at 21cn dot com
sorry for my fooly mistype @_@
i've read so many codes when they calc: when->which
hold website--> whole website
 [2002-04-28 20:13 UTC] jimw@php.net
the documentation does explain how to use unix timestamps.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC