8 More Discussions You Might Find Interesting
1. AIX
Hi!
I have forgotten to change the file /etc/environment on a server.
I had this ligne for TZ variable
TZ=NFT-1DFT,M3.4.0/2:00:00,M10.5.0/2:00:00
So, yesterday I had the wrong date
Yesterday I changed the hour to come back at the good hour and change /etc/environment by this lign... (3 Replies)
Discussion started by: Castelior
3 Replies
2. Post Here to Contact Site Administrators and Moderators
Not sure as to How to close a thread so people understand that the issue was solved and the issue is not just sitting in limbo still waiting for a resolution. (1 Reply)
Discussion started by: mrmurdock
1 Replies
3. IP Networking
Hi,
I have a question on closing the listen socket in server. In the application I am working, the server is continously receiving requests from the client in its master socket to handle each request. There is an option to shutdown the server process. In this case do I need to explicitly close... (1 Reply)
Discussion started by: naan
1 Replies
4. Shell Programming and Scripting
i need a script that can tell me the date 2 days ago or 3 days ago.
please help (7 Replies)
Discussion started by: tomjones
7 Replies
5. What is on Your Mind?
for anyone who surfs the northeast:
why can't we have more frequent wave forming winds (bigger low pressure systems) in the summer?! i'm tired of putting on 100lbs of wet suit and surfing awesome waves. i'd rather put on no wet suit and surf awesome waves. :) damn the bermuda high!!
anyone... (1 Reply)
Discussion started by: pupp
1 Replies
6. Shell Programming and Scripting
Hi,
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
3 Replies
7. UNIX for Dummies Questions & Answers
Reliant Unix.
Our branch in Syria has a Unix Server running our company application.
Usually the the time is changed not in a fixed date.....but around end of October and beginning of November.
The night of the summer winter time change last year...we put the server in singel user mode, then... (0 Replies)
Discussion started by: bcheaib
0 Replies
8. Post Here to Contact Site Administrators and Moderators
hi,
Just wondering if there could be a way to close threads whose creator has got the desired reply.
however if someone still wants to give a remark or suggest further on the thread one can still do so.
Besides on the control panel there should be some kind of selection criteria to view... (3 Replies)
Discussion started by: linuxpenguin
3 Replies
DATEINTERVAL(3) 1 DATEINTERVAL(3)
The DateInterval class
INTRODUCTION
Represents a date interval.
A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that
DateTime's constructor supports.
CLASS SYNOPSIS
DateInterval
DateInterval
Properties
o public integer$y
o public integer$m
o public integer$d
o public integer$h
o public integer$i
o public integer$s
o public integer$invert
o public mixed$days
Methods
o public DateInterval::__construct (string $interval_spec)
o publicstatic DateInterval DateInterval::createFromDateString (string $time)
o public string DateInterval::format (string $format)
PROPERTIES
o $y
- Number of years.
o $m
- Number of months.
o $d
- Number of days.
o $h
- Number of hours.
o $i
- Number of minutes.
o $s
- Number of seconds.
o $invert
- Is 1 if the interval represents a negative time period and 0 otherwise. See DateInterval::format.
o $days
- If the DateInterval object was created by DateTime.diff(3), then this is the total number of days between the start and end
dates. Otherwise, $days will be FALSE. Before PHP 5.4.20/5.5.4 instead of FALSE you will receive -99999 upon accessing the prop-
erty.
PHP Documentation Group DATEINTERVAL(3)