I'm not seeing the problem you are trying to demonstrate. Is there some reason why you believe the timestamp on a file that you changed on September 14th should have a timestamp that is somehow related to the current hardware or software clock?
What is the output from the single command line:
If the output from these three commands are not in non-decreasing timestamp order, then you might have a problem.
Hi folks,
The server time is no tgetiing synched up with the NTP server.
I tried ntpdate -u <ipadress> this is not working. please help out.
regards,
Sag. (7 Replies)
Hello all,
What would be the most convienint and proper way on syncing up the time and date on Solaris 8 servers with an NTP server?
Any help would be appreciated. Thanks (2 Replies)
Ok, I have 4 production systems. There is one NTP server for all four systems. In each system there is one Solaris 10 box that points to that NTP server. All of the other machines in the system point to the Solaris 10 machine to get their time sync.
All four Solaris 10 machines have essentially... (2 Replies)
Hi,
My Linux VMs are running on citrix XEN.Somehow the time drift is too high (going very fast). Even if the correct time configured using date -s command, for every 1 hr it is differing almost 5 - 10 mins.
Tried configuring ntpd (local NTP server) and still it is not synchronized.
Machine... (2 Replies)
I have 2 sol 10 OS boxes in replication and there is a 6 minutes time difference in GMT zone. How I can sync? they are not on public network. (2 Replies)
Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site.
Below is the ntp.conf:
% vi /etc/ntp.conf
# Permit time synchronization with our time source, but do not
# permit... (2 Replies)
I have a VirtualBox w2008r2 Domain Controller running on a Solaris 10 server. I have the time on the Virtual machine set to Default time sync (bios clock) and the Solaris server set to sync to
0 8,20 * * * /usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil >> /tmp/ntp.log
My problem is... (2 Replies)
I wanted to know which should be the best way to sync time for a linux machine. We have an application server and a database server, both using RHEL 5.8 as the OS. It is important that the time on both these servers match together and also sync with a common time source. As per my knowledge, these... (11 Replies)
Discussion started by: RHCE
11 Replies
LEARN ABOUT PHP
datetimeimmutable.gettimestamp
DATETIMEIMMUTABLE.GETTIMESTAMP(3) 1 DATETIMEIMMUTABLE.GETTIMESTAMP(3)DateTime::getTimestamp - Gets the Unix timestamp
Object oriented style
SYNOPSIS
public int DateTime::getTimestamp (void )
DESCRIPTION
int DateTimeImmutable::getTimestamp (void ) int DateTimeInterface::getTimestamp (void )
Procedural style
int date_timestamp_get (DateTimeInterface $object)
Gets the Unix timestamp.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the Unix timestamp representing the date.
EXAMPLES
Example #1
DateTimeImmutable.getTimestamp(3) example
Object oriented style
<?php
$date = new DateTime();
echo $date->getTimestamp();
?>
Procedural style
<?php
$date = date_create();
echo date_timestamp_get($date);
?>
The above examples will output something similar to:
1272509157
NOTES
Using U as the parameter to DateTime.format(3) is an alternative when using PHP 5.2.
SEE ALSO DateTime.setTimestamp(3), DateTime.format(3).
PHP Documentation Group DATETIMEIMMUTABLE.GETTIMESTAMP(3)