Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to get the knowledge in UNIX? Suggest me . Please. Post 91964 by aniseed on Tuesday 6th of December 2005 10:24:40 PM
Old 12-06-2005
Any specific books that would be worth playing? Smilie
 

9 More Discussions You Might Find Interesting

1. IP Networking

Any knowledge for sysctl?

HI folks. I am developing a protocol and I need to bind to an IP address that is not configured to my machine. The problem is with bind(). The sysctl system call seamed to overcome the problem of bind if you set the proc/sys/net/ipv4/ip_nonlocal_bind flag. Although I tryed to set the flag either... (7 Replies)
Discussion started by: developer
7 Replies

2. UNIX for Dummies Questions & Answers

unix knowledge

I am a new Unix user looking for ways, other than time, to become an effective unix administrator. All sugestions welcome. Thanks (10 Replies)
Discussion started by: dtooth71
10 Replies

3. AIX

knowledge

Dear All Kindly provide me with a difference between hdiskpower and hdisk regards (2 Replies)
Discussion started by: magasem
2 Replies

4. UNIX for Dummies Questions & Answers

Unix book which gives in depth canceptual knowledge

Hi, I am a java professional working with a MNC as a Senior Software Engineer.I have done my masters in computer scinece. I always had liking for UNIX . I had UNIX as one of the subject for my masters but could not pursue it as needed a job at that time . But now I would like to parsue my... (1 Reply)
Discussion started by: amigia
1 Replies

5. UNIX for Dummies Questions & Answers

Unix knowledge / Shell scripting

I'm looking to buy some books to help me learn more about Unix and shell scripting? I have been looking at books i.e. Classic Shell Scripting,Unix power tools Just don't know which is the best outthere for me i know the basics but don't want to buy books that will be no good I currently am... (4 Replies)
Discussion started by: Pablo_beezo
4 Replies

6. Shell Programming and Scripting

Knowledge

Can somebody explain me the following part within a awk command: awk '{for(i=1;i<=NF;i++) if ($i=="mm")c++} Can somebody please explain me the part (i=1;i<=NF;i++) ????:D:D:D:D (1 Reply)
Discussion started by: RubinPat
1 Replies

7. Shell Programming and Scripting

programming knowledge

Hi Friends, I know very well the basic commands of Unix but i want to concentrate on unix shell programming can you please how to learn and suggest me how to become comfortable level. Thanks in advance (1 Reply)
Discussion started by: victory
1 Replies

8. UNIX for Dummies Questions & Answers

Practice using Unix and lack of knowledge

So I have a Networking class at my university that involves learning the basic commands of unix (i.e. Chmod, cat, cp, ls, mv, rm, mkdir, rmdir, pwd, etc) and my professor had us download and install Solaris and PuTTY as a means of...I suppose practicing using/executing commands. However due to... (7 Replies)
Discussion started by: bo74
7 Replies

9. What is on Your Mind?

Please Review Our Unix/Linux Timeline and Suggest More Events and Milestones

In case you have not seen it, we have a UNIX and Linux Timeline on FB. If you have a few free moments, could you review the timeline and post back here in this thread with your suggestions and ideas for new entries and milestones? Thanks! (1 Reply)
Discussion started by: Neo
1 Replies
DATEINTERVAL.FORMAT(3)							 1						    DATEINTERVAL.FORMAT(3)

DateInterval::format - Formats the interval

SYNOPSIS
public string DateInterval::format (string $format) DESCRIPTION
Formats the interval. PARAMETERS
o $format - The following characters are recognized in the $format parameter string. Each format character must be prefixed by a percent sign ( %). +------------------+--------------------------------------+---+ |$format character | | | | | | | | | Description | | | | | | | | Example values | | | | | | +------------------+--------------------------------------+---+ | | | | | % | | | | | | | | | Literal % | | | | | | | | | | | | % | | | | | | | | | | | Y | | | | | | | | | Years, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03 | | | | | | | | | | | y | | | | | | | | | Years, numeric | | | | | | | | | | | | 1, 3 | | | | | | | | | | | M | | | | | | | | | Months, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03, 12 | | | | | | | | | | | m | | | | | | | | | Months, numeric | | | | | | | | | | | | 1, 3, 12 | | | | | | | | | | | D | | | | | | | | | Days, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03, 31 | | | | | | | | | | | d | | | | | | | | | Days, numeric | | | | | | | | | | | | 1, 3, 31 | | | | | | | | | | | a | | | | | | | | | Total number of days as a result of | | | | a DateTime::diff or (unknown) other- | | | | wise | | | | | | | | | | | | 4, 18, 8123 | | | | | | | | | | | H | | | | | | | | | Hours, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03, 23 | | | | | | | | | | | h | | | | | | | | | Hours, numeric | | | | | | | | | | | | 1, 3, 23 | | | | | | | | | | | I | | | | | | | | | Minutes, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03, 59 | | | | | | | | | | | i | | | | | | | | | Minutes, numeric | | | | | | | | | | | | 1, 3, 59 | | | | | | | | | | | S | | | | | | | | | Seconds, numeric, at least 2 digits | | | | with leading 0 | | | | | | | | | | | | 01, 03, 57 | | | | | | | | | | | s | | | | | | | | | Seconds, numeric | | | | | | | | | | | | 1, 3, 57 | | | | | | | | | | | R | | | | | | | | | Sign " -" when negative, " +" when | | | | positive | | | | | | | | | | | | -, + | | | | | | | | | | | r | | | | | | | | | Sign " -" when negative, empty when | | | | positive | | | | | | | | | | | | -, | | | | | | +------------------+--------------------------------------+---+ RETURN VALUES
Returns the formatted interval. NOTES
Note The DateInterval::format method does not recalculate carry over points in time strings nor in date segments. This is expected because it is not possible to overflow values like "32 days" which could be interpreted as anything from "1 month and 4 days" to "1 month and 1 day". EXAMPLES
Example #1 DateInterval example <?php $interval = new DateInterval('P2Y4DT6H8M'); echo $interval->format('%d days'); ?> The above example will output: 4 days Example #2 DateInterval and carry over points <?php $interval = new DateInterval('P32D'); echo $interval->format('%d days'); ?> The above example will output: 32 days Example #3 DateInterval and DateTime::diff with the %a and %d modifiers <?php $january = new DateTime('2010-01-01'); $february = new DateTime('2010-02-01'); $interval = $february->diff($january); // %a will output the total number of days. echo $interval->format('%a total days')." "; // While %d will only output the number of days not already covered by the // month. echo $interval->format('%m month, %d days'); ?> The above example will output: 31 total days 1 month, 0 days SEE ALSO
DateTime::diff. PHP Documentation Group DATEINTERVAL.FORMAT(3)
All times are GMT -4. The time now is 03:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy