# Time with php

**URL:** <https://forum.kirupa.com/t/time-with-php/18937>\
**Category:** Uncategorized\
**Created:** [April 22, 2003, 7:27pm UTC](https://forum.kirupa.com/t/time-with-php/18937 "2003-04-22T19:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishtank](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fishtank](https://forum.kirupa.com/u/fishtank)\
**Post date:** [April 22, 2003, 7:27pm UTC](https://forum.kirupa.com/t/time-with-php/18937/1 "2003-04-22T19:27:30Z")

</div>

have already searched the forums…

i would like to know how to print the current time with php.

i only know how to print the date :\*(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 22, 2003, 7:37pm UTC](https://forum.kirupa.com/t/time-with-php/18937/2 "2003-04-22T19:37:37Z")

</div>

[http://www.php.net/manual/en/function.date.php](http://www.php.net/manual/en/function.date.php)

but PHP returns the time on the server. I’m not sure how to get it to return the local system time. You might want to use javascript for that…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 22, 2003, 7:39pm UTC](https://forum.kirupa.com/t/time-with-php/18937/3 "2003-04-22T19:39:54Z")

</div>

thanks man…

i want to print the servertime 😛
