I im just a beginner here. I wanted to know how to calculate the Quarter of a Month, and i want to assign Number like if the month falls on 1st quarter then i have to assign to 1 then going on till the last Quarter!!
Any help will be much use to me..
~Renne (2 Replies)
I am a sql programmer, I don't know much about UNIX. I want to modify the existing unix script
-----------------------------------------------------------------
............
cd /home/location/file
set timing on
sqlplus user/$IDPW <<!
prompt RUNNING NEW QUARTER PROCESSING. PLEASE WAIT.... (1 Reply)
Hi All,
I am trying to generate quarter dates with user giving input as begin date and end date. Example: Input by user:
begin_date = "2009-01-01"
end_date = 2010-04-30"
required output:
2009-01-01 2009-03-31 09Q01
2009-04-01 2009-06-30 09Q02
.
.
till
2010-01-01 2010-03-31 10Q01
... (9 Replies)
Dear Members,
Depending on the current date i should find out the start and end dates of the quarter.
ex: Today date is 14-Nov-2011 then Quarter start date should be Oct 1 2011 and Quarter End date should be Dec 31 2011.
How can i do this?
Thanks
Sandeep (1 Reply)
Hi ,
I need to trigger few jobs based on the system date ( in case user is not passing any date to the script. In case passing then need to take the user date).
Here is the requirement
1. Everyday call daily script
2. On 1st day of week call weekly script
3. On 1st day of month call... (4 Replies)
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Hi,
Trying to automate a Postgres query using Shell script
Every month 1st week has to run a Monthly Queries to generate delimited files.
July 1st start of fiscal yr which has 4 Quarters until next June 30th
Example
If I'm running on Sept 5th it has to generate one file(Becuase it... (12 Replies)
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
LEARN ABOUT REDHAT
ddate
DDATE(1) Emperor Norton Utilities DDATE(1)NAME
ddate - converts Gregorian dates to Discordian dates
SYNOPSIS
ddate [+format] [date]
DESCRIPTION
ddate prints the date in Discordian date format.
If called with no arguments, ddate will get the current system date, convert this to the Discordian date format and print this on the stan-
dard output. Alternatively, a Gregorian date may be specified on the command line, in the form of a numerical day, month and year.
If a format string is specified, the Discordian date will be printed in a format specified by the string. This mechanism works similarly to
the format string mechanism of date(1), only almost completely differently. The fields are:
%A Full name of the day of the week (i.e., Sweetmorn)
%a Abbreviated name of the day of the week (i.e., SM)
%B Full name of the season (i.e., Chaos)
%b Abbreviated name of the season (i.e., Chs)
%d Ordinal number of day in season (i.e., 23)
%e Cardinal number of day in season (i.e., 23rd)
%H Name of current Holyday, if any
%N Magic code to prevent rest of format from being printed unless today is a Holyday.
%n Newline
%t Tab
%X Number of days remaining until X-Day. (Not valid if the SubGenius options are not compiled in.)
%{
%} Used to enclose the part of the string which is to be replaced with the words "St. Tib's Day" if the current day is St. Tib's Day.
%. Try it and see.
EXAMPLES
% ddate
Sweetmorn, Bureaucracy 42, 3161 YOLD
% ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'
Today is Sweetmorn, the 42nd of Bureaucracy, 3161.
% ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
It's Prickle-Prickle, the 50th of Bureaucracy, 3161.
Celebrate Bureflux
% ddate +'Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H' 29 2 1996
Today's St. Tib's Day, 3162.
BUGS ddate(1) will produce undefined behaviour if asked to produce the date for St. Tib's day and its format string does not contain the St.
Tib's Day delimiters %{ and %}.
NOTE
After `X-Day' passed without incident, the Church of the SubGenius declared that it had got the year upside down - X-Day is actually in
8661 AD rather than 1998 AD. Thus, the True X-Day is Cfn 40, 9827.
AUTHOR
Original program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu)
Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org)
Five tons of flax.
DISTRIBUTION POLICY
Public domain. All rites reversed.
SEE ALSO date(1),
http://www.subgenius.com/
Malaclypse the Younger, Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her
59 Bureaucracy 3161 DDATE(1)