ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Code Snippets >> Scripts_Markup Code >> PHP Code
 
 


 

 
 PHP Code interview questions  PHP Code Interview Questions (31)
 JSP Code interview questions  JSP Code Interview Questions (5)
 ASP Code interview questions  ASP Code Interview Questions (0)
 CGI Perl Code interview questions  CGI Perl Code Interview Questions (2)
 JavaScript Code interview questions  JavaScript Code Interview Questions (64)
 VB Script Code interview questions  VB Script Code Interview Questions (15)
 Shell Script Code interview questions  Shell Script Code Interview Questions (1)
 Python Code interview questions  Python Code Interview Questions (3)
 WinRunner Code interview questions  WinRunner Code Interview Questions (1)
 HTML DHTML XHTML Code interview questions  HTML DHTML XHTML Code Interview Questions (1)
 XML interview questions  XML Interview Questions (2)
 Scripts_Markup Code AllOther interview questions  Scripts_Markup Code AllOther Interview Questions (5)
Question
1)how i get the current system time using php?
 Question Submitted By :: Anirban Paul
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 1)how i get the current system time using php?
Answer
# 21
USing date("h:i:s") function returns the time but not the actual INDIAN time. Suppose here time is "01:16:26" but showing like "07:27:01". I want to correct it, now is there any solution for that? 
Is This Answer Correct ?    1 Yes 1 No
Amiy
 
  Re: 1)how i get the current system time using php?
Answer
# 22
$time_offset ="825"; // Change this to your time zone
$time_a = ($time_offset * 120);
$time = date("h:i:s A",time() + $time_a);
echo 'Current time is : '.$time;
 
Is This Answer Correct ?    1 Yes 0 No
Jibu
 

 
 
 
Other PHP Code Interview Questions
 
  Question Asked @ Answers
 
What is main difference between Cookie and Cache? NIIT 3
Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why? Hcl 1
What is difference between ksort and krsort in php?   1
Hi I have a dynamic dropdown reading in data from a MQSql database, I need to refresh just the dropdown (not the whole page) for any new values in the database. I am trying to use the getElementById in javascript but I have no idea how to get it to refresh. Does any one have an examples or any ideas how this can be done? Regards Srilanka_3   4
What is used of phpinfo() function in php?   1
If i have an array $string = array(1,2,6,2,9,6,7,3,1,2); How can i get only unique values from it? Array ( [0] => 1 [1] => 2 [2] => 6 [4] => 9 [6] => 7 [7] => 3 )   2
How many frameworks are in php?   1
How to Connect and Insert Record to MYSQL using PHP?   6
What is meant by 404 errors in php? NIIT 2
How can get current system time continuously without refresh of page?   1
I have array like $array = array(1, "hello", 1, "world", "hello"); if i want the following output then how can i do this? Array ( [1] => 2 [hello] => 2 [world] => 1 ) NIIT 2
1)how i get the current system time using php?   22
 
For more PHP Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com