473,473 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Time Stamps

The1corrupted
134 New Member
No matter what I do, I cannot wrap my head around time stamps... For instance..

[PHP]
$time=$_SERVER['request_time'];
[/PHP]
I think that's what it is... at any rate, how can I make a true time stamp with minutes and seconds?
Feb 24 '07 #1
3 1783
xwero
99 New Member
No matter what I do, I cannot wrap my head around time stamps... For instance..

[PHP]
$time=$_SERVER['request_time'];
[/PHP]
I think that's what it is... at any rate, how can I make a true time stamp with minutes and seconds?
you have to use the date function.

[PHP]date('d-m-Y H:i:s',$time);[/PHP]
Feb 25 '07 #2
The1corrupted
134 New Member
Could I chop that down some like this:

[PHP]
date('i:s', $time);
[/PHP]
Feb 25 '07 #3
xwero
99 New Member
Could I chop that down some like this:

[PHP]
date('i:s', $time);
[/PHP]
of course for more date function arguments check http://be2.php.net/manual/en/function.date.php
Feb 25 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bathroom_Monkey | last post by:
I've got a newb question about Daylight Savings Time (DST). First of all here is some server info: Apache 1.3.28 PHP 4.3.6 MySQL 3.23.49 Time is set to GMT My goal is to be able to...
5
by: RICHARD BROMBERG | last post by:
I am writing an ASP program that includes a Form. When the Form is submitted I use the Date() and Time() functions to put the date and time into the Body part of the e-mail. The time reported is...
4
by: luscus | last post by:
I am trying to device a formula so that when i check of a yes/no box (done) it will automatically add the time in a field called "End Time" and at the same time stamp the amount of minutes...
14
by: George | last post by:
In Time.h there is a structure defined for time settings. I'm building an embedded system that has a Real Time Clock but it's not PC compatible. My question is: I don't some elements of the...
9
by: Bob Achgill | last post by:
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database...
1
by: bonokoot | last post by:
Hello, I wrote this program in C# that accesses a SQL Server database that runs a stored procedure and sents the results in an email every 30min. I wrote this as a windows application instead of a...
2
by: KoRnDragon | last post by:
Does anyone know of a script that translates time stamps to look like those used by Gmail? (ie. 2 days ago/ 15 minutes ago etc.)
1
by: richardson | last post by:
Hi all i need ur help on how to calculate the avg time of two time stamps like start_time and end_time . The ideal need is to know the average time taken by each job from a table . i tried ...
0
by: =?Utf-8?B?S2VsbHk=?= | last post by:
Each fall and winter I deal witht he same problem. When the daylight savings time comes into effect the time stamp for files on my external portable hard drive are 1 hour out from the time stamps...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.