Sponsored Content
The Lounge What is on Your Mind? UNIX/Linux Forums Post Of The Week 47, November, 2009 Post 302372406 by thegeek on Wednesday 18th of November 2009 12:16:26 AM
Old 11-18-2009
Java Sorted file

I found this post on "Sorted file" interesting and have nominated it accordingly for "UNIX/Linux Forums Post Of The Week 47, November, 2009"
 

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 41, October, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (8 Replies)
Discussion started by: Linux Bot
8 Replies

2. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 42, October, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (0 Replies)
Discussion started by: Linux Bot
0 Replies

3. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 43, October, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (0 Replies)
Discussion started by: Linux Bot
0 Replies

4. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 44, October, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (0 Replies)
Discussion started by: Linux Bot
0 Replies

5. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 45, November, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (1 Reply)
Discussion started by: Linux Bot
1 Replies

6. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 46, November, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (2 Replies)
Discussion started by: Linux Bot
2 Replies

7. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 48, November, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (0 Replies)
Discussion started by: Linux Bot
0 Replies

8. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 49, November, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (1 Reply)
Discussion started by: Linux Bot
1 Replies

9. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 50, December, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (9 Replies)
Discussion started by: Linux Bot
9 Replies

10. What is on Your Mind?

UNIX/Linux Forums Post Of The Week 52, December, 2009

Which post should win this weeks UNIX/Linux post of the week nomination contest? Choose from the posts listed throughout the forum(s), and vote for your favorite post now. What is Topic Of The Week? Post of the Week is a contest that select posts which we would like the community to... (0 Replies)
Discussion started by: Linux Bot
0 Replies
INTLCALENDAR.GETMINIMALDAYSINFIRSTWEEK(3)				 1				 INTLCALENDAR.GETMINIMALDAYSINFIRSTWEEK(3)

IntlCalendar::getMinimalDaysInFirstWeek - Get minimal number of days the first week in a year or month can have

	Object oriented style

SYNOPSIS
public int IntlCalendar::getMinimalDaysInFirstWeek (void ) DESCRIPTION
Procedural style int intlcal_get_minimal_days_in_first_week (IntlCalendar $cal) Returns the smallest number of days the first week of a year or month must have in the new year or month. For instance, in the Gregorian calendar, if this value is 1, then the first week of the year will necessarily include January 1st, while if this value is 7, then the week with January 1st will be the first week of the year only if the day of the week for January 1st matches the day of the week returned by IntlCalendar.getFirstDayOfWeek(3); otherwise it will be the previous years last week. PARAMETERS
o $cal - The IntlCalendar resource. RETURN VALUES
An int representing a number of days or FALSE on failure. EXAMPLES
Example #1 IntlCalendar.getMinimalDaysInFirstWeek(3) <?php ini_set('date.timezone', 'UTC'); ini_set('intl.default_locale', 'en_US'); $cal = new IntlGregorianCalendar(2013, 0 /* January */, 2); var_dump(IntlDateFormatter::formatObject($cal, 'cccc')); // Wednesday var_dump($cal->getMinimalDaysInFirstWeek(), // 1 $cal->getFirstDayofWeek()); // 1 (Sunday) // Week 1 of 2013 var_dump(IntlDateFormatter::formatObject($cal, "'Week 'w' of 'Y")); $cal->setMinimalDaysInFirstWeek(4); // Still Week 1 of 2013 (1st week has 5 days in the new year) var_dump(IntlDateFormatter::formatObject($cal, "'Week 'w' of 'Y")); $cal->setMinimalDaysInFirstWeek(6); // Week 53 of 2012 var_dump(IntlDateFormatter::formatObject($cal, "'Week 'w' of 'Y")); The above example will output: string(9) "Wednesday" int(1) int(1) string(14) "Week 1 of 2013" string(14) "Week 1 of 2013" string(15) "Week 53 of 2012" PHP Documentation Group INTLCALENDAR.GETMINIMALDAYSINFIRSTWEEK(3)
All times are GMT -4. The time now is 11:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy