03-14-2011
hii
can u please answer this question
if i have the week number and i know monday is the day and i know year too
how can i find out the day of the week
please as this is very imp
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have to kick off a script on every Monday to get some data from database for last week (Sunday thru Saturday).
If its Monday (12/12/2005)
Begin date will be Sunday - 12/4/2005
End date will be Saturday - 12/10/2005
The script might not kick off on some Mondays.
So my... (2 Replies)
Discussion started by: skymirror
2 Replies
2. UNIX for Dummies Questions & Answers
How to find last sunday (date) using perl?
Eg, If i run today (26-Feb-2008 / Tuesday), I should get 24-Feb-2008 (Sunday).
Any help? (3 Replies)
Discussion started by: deepakwins
3 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement to define all Saturdays/Sundays of every month in a year as holidays. I am making use of Date::Manip package available in perl.
I tried writing a recurrence as :
0:1*3:7:0:0:0 --> this relation helps me to define 3rd Sunday of a year as sunday.
My requirement is... (1 Reply)
Discussion started by: harpreetanand
1 Replies
4. Shell Programming and Scripting
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Discussion started by: Donkey25
4 Replies
5. UNIX for Dummies Questions & Answers
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies
6. Shell Programming and Scripting
Hi All,
I have a requirement in my project where a batch runs on any day of a week. The input files will land to the server every Sunday. I need to read these files based on the current BUS_DAY (which falls any day of the week).
For e.g : if the BUS_DAY is 20120308, we need to derive the... (3 Replies)
Discussion started by: dsfreddie
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Can you please let me know how to get the yesterday's date of the given date if the given date is Sunday?
I can't use GNU. I have the code to get the yesterday's date based on the system date.
Thanks (5 Replies)
Discussion started by: shash
5 Replies
8. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
9. Linux
Hi,
My question is how to calculate the quarter end date according to the current date in shell script? (2 Replies)
Discussion started by: Divya_1234
2 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
LEARN ABOUT PHP
intlcalendar.getminimaldaysinfirstweek
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)