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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 07:03:34 2022 UTC