如何获得电脑时间 [英] how to get a pc time

查看:45
本文介绍了如何获得电脑时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有

i希望使用php获取当前个人电脑(个人电脑)的时间

任何人都可以建议我

hi all
i want to get current pc(personal computer) time using php
can anyone suggest me

推荐答案

[PHP]

<?php

echo echo date('l dS \of FY h:i:s A'');

?>

[/ php]

你可以在这里阅读更多关于日期功能的信息
http://www.php.net/date


谢谢你的帮助快速回复


这里我喜欢这个日期(''Ymd h:i:s A'')以及日期('l dS \of FY h:i: s A'')

但两者都没有显示当前的电脑时间

有没有其他方法可以让电脑上映时间??????????
thanks for ur quick reply

here i used like this date(''Y-m-d h:i:s A'') as well as date(''l dS \of F Y h:i:s A'')
but both doesn''t shows the current pc time
is there anyother way to get pc time??????????


您想要用户当前的电脑时间吗?如果是这样一个javascript脚本问题。

http://www.w3schools.com/ js / js_obj_date.asp

该链接应告诉您如何使用内置的日期对象。
Do you want the users current pc time? If so thats a javascript script question.

http://www.w3schools.com/js/js_obj_date.asp
That link should tell you how to use the date object thats built in.


这篇关于如何获得电脑时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆