repeat_interval &; Easter
HelloHow do an additive in the annex to the public_holidays, that is to say including the Easter. It's... dates that are not specific date and the same each year, but according to other stuff?
I know that I can make one for 2011, 2012 etc. But I wish I had a repeat_interval giving Easter.
Is this possible without having to generate a new every year?
Concerning
Mette
You asked for it :)
SQL > Rem a function to print the dates
SQL > cal_string Rem: a timing chain (AS FREQ = DAILY..);
SQL > Rem start_date: report dates starting on or after this date
SQL > nr_dates Rem: number of return dates;
SQL >
SQL > create or replace procedure print_dates
() 2
3 cal_string in varchar2,
start_date timestamp with time zone 4,.
5 nr_of_dates in pls_integer
8 g
7 is
8 date_after timestamp with time zone: = start_date - interval of second '1';
9 next_execution_date timestamp with time zone;
10 starts
11 dbms_output.put_line ('-->');
12 because me in 1... nr_of_dates
loop 13
14 dbms_scheduler.evaluate_calendar_string
15 (cal_string, start_date, date_after, next_execution_date);
16
17 dbms_output.put_line (to_char (next_execution_date,
18 ' DY DD-MON-YYYY (DDD - IW) HH24:MI:SS TZDS TZH TZR '));
19
20 date_after: = next_execution_date;
21 end of loop;
22 end;
23.
Created procedure.
SQL >
SQL > Rem create us a calendar to be used as a user-defined schedule.
SQL > Rem this calendar consists of all of the dates of Easter using the clause bydate
SQL > Rem you could hard-code the list of dates, but rather to generate the list of Easter
SQL > dates Rem with a helper function butcher_easter_ymd that implements
SQL > Rem an algorithm to determine Easter
SQL > dates of Rem.
SQL >
SQL > create or replace procedure butcher_easter_ymd
() 2
3 years in pls_integer,
4 months on pls_integer,
day 5 pls_integer
8 g
7 is
8 a number: = MOD(year,19);
9 number of b: = TRUNC(year/100);
number 10 c: = MOD(year,100);
Number 11 d: = TRUNC(b/4);
12 number e: = MOD (b, 4);
13 number of f: = TRUNC ((b+8)/25);
Number 14 g: = TRUNC ((b-f+1)/3);
Number 15 h: = MOD(19*a+b-d-g+15,30);
16 I have COMP: = TRUNC(c/4);
17 k number: = MOD (c, 4);
Number 18 l: = MOD(32+2*e+2*i-h-k,7);
number 19 m: = TRUNC ((a+11*h+22*l)/451);
20 number of Easter_Month: = TRUNC ((h+l-7*m+114)/31);
number 21 p: = MOD(h+l-7*m+114,31);
22 Easter_Date number: = p + 1;
23
Start 24
25 months: = Easter_Month;
day 26: = Easter_Date;
27 end;
28.
Created procedure.
SQL > show errors
No errors.
SQL >
SQL > function of A Rem to generate the freq = daily; bydate = {list of dates of Easter}
SQL >
SQL > create or replace procedure generate_easter_schedule
() 2
3 y_start in pls_integer,
4 y_end in pls_integer
5)
6 is
easter_schedule 7 varchar2 (2000);
8 easter_d pls_integer;
easter_m 9 pls_integer;
10 sep varchar2 (1);
11 start
12 easter_schedule: = ' FREQ = DAILY; BYDATE =';
13 Sep: = ";
14 because I in y_start... y_end loop
15 butcher_easter_ymd (i, easter_m, easter_d);
16 easter_schedule: = easter_schedule | Ms
17 || to_char(i*10000+easter_m*100+easter_d);
Sep 18: = ', ';
19 end of loop;
start at 20
21 dbms_scheduler.drop_schedule('easter');
22 exception when other then null;
23 end;
24 dbms_scheduler.create_schedule ("Easter", repeat_interval-online easter_schedule,
start_date 25 =>
26 to_timestamp_tz (January 1, 2008 09:00 "," DD-MON-YYYY HH24:MI:SS'));)
27
28 end;
29.
Created procedure.
SQL >
SQL > show errors
No errors.
SQL >
SQL >
SQL > Rem run the generator of the GET, the timing of Easter
SQL > set serveroutput on
SQL >
SQL >
SQL > exec generate_easter_schedule (2009,2070);
PL/SQL procedure successfully completed.
SQL >
SQL > select repeat_interval from the user_scheduler_schedules where schedule_name = 'EASTER ';
REPEAT_INTERVAL
--------------------------------------------------------------------------------
FREQ = ALL DAYS; BYDATE = 20090412, 20100404, 20110424, 20120408, 20130331, 20140420, 20150405
20160327,20170416,20180401,20190421,20200412,20210404,20220417,20230409,2024033
1,20250420,20260405,20270328,20280416,20290401,20300421,20310413,20320328,203304
17,20340409,20350325,20360413,20370405,20380425,20390410,20400401,20410421,20420
406,20430329,20440417,20450409,20460325,20470414,20480405,20490418,20500410,2051
0402,20520421,20530406,20540329,20550418,20560402,20570422,20580414,20590330,206
00418,20610410,20620326,20630415,20640406,20650329,20660411,20670403,20680422,20
690414,20700330
SQL >
SQL > / *.
SQL > use planning of Easter as a frequency set by the user to find out all the
SQL > holidays Easter-related
SQL >-47 - Carnival, Shrove Tuesday, Fat Tuesday, Shrove Tuesday, etc.
SQL > - 46 - Ash Wednesday (-40 Sunday if not counted)
SQL > - 7 - Palm Sunday
SQL > - 3 - Thursday Holy, Holy Thursday
SQL > - 2 - Friday St
SQL > - 1 - Saturday Saint
SQL > 1 - Easter Sunday
SQL > 2 - Easter Monday
SQL > 40 - ascension day (Thursday)
SQL > 50 - Pentecost
SQL > 51 - Whit Monday
SQL > 60 - corpus christy
SQL > * /.
SQL >
SQL > /.
REPEAT_INTERVAL
--------------------------------------------------------------------------------
FREQ = ALL DAYS; BYDATE = 20090412, 20100404, 20110424, 20120408, 20130331, 20140420, 20150405
20160327,20170416,20180401,20190421,20200412,20210404,20220417,20230409,2024033
1,20250420,20260405,20270328,20280416,20290401,20300421,20310413,20320328,203304
17,20340409,20350325,20360413,20370405,20380425,20390410,20400401,20410421,20420
406,20430329,20440417,20450409,20460325,20470414,20480405,20490418,20500410,2051
0402,20520421,20530406,20540329,20550418,20560402,20570422,20580414,20590330,206
00418,20610410,20620326,20630415,20640406,20650329,20660411,20670403,20680422,20
690414,20700330
SQL > Rem the calendar below expression generates all associates of Easter holiday.
SQL > Rem remove all or part of the BYSETPOS posts to remove the holidays from the list
SQL > Rem, e.g. FREQ = reports alone EASTER Easter Day
SQL > start
2 print_dates ("FREQ = EASTER; BYDAY = SUN, MON, MAR, SEA, GAME, SAT, SAM;' |
3 'BYSETPOS =-47-46 - 7, -3, -2, -1, 1, 2, 40, 50, 51, 60',
to_timestamp_tz 4 (January 1, 2010 09:00 "," DD-MON-YYYY HH24:MI:SS'), 25);
5 end;
4 m
-->
TUESDAY, 16 FEBRUARY 2010 (07-047) 09:00 - 07 - 07:00
WEDNESDAY, 17 FEBRUARY 2010 (07-048) 09:00 - 07 - 07:00
SUNDAY, MARCH 28, 2010 (087-12) 09:00 - 07 - 07:00
THURSDAY, APRIL 1, 2010 (091-13) 09:00 - 07 - 07:00
FRIDAY, APRIL 2, 2010 (13 092) 09:00 - 07 - 07:00
SATURDAY, 3 APRIL 2010 (093-13) 09:00 - 07 - 07:00
SUNDAY, 4 APRIL 2010 (094-13) 09:00 - 07 - 07:00
MONDAY, APRIL 5, 2010 (14 095) 09:00 - 07 - 07:00
THURSDAY, 13 MAY 2010 (133-19) 09:00 - 07 - 07:00
SUNDAY, MAY 23, 2010 (143-20) 09:00 - 07 - 07:00
MONDAY, MAY 24, 2010 (144-21) 09:00 - 07 - 07:00
WEDNESDAY, JUNE 2, 2010 (153-22) 09:00 - 07 - 07:00
TUESDAY, MARCH 8, 2011 (067-10) 09:00 - 07 - 07:00
WEDNESDAY, MARCH 9, 2011 (068-10) 09:00 - 07 - 07:00
SUNDAY, APRIL 17, 2011 (107-15) 09:00 - 07 - 07:00
THURSDAY, APRIL 21, 2011 (111-16) 09:00 - 07 - 07:00
FRIDAY, APRIL 22, 2011 (112-16) 09:00 - 07 - 07:00
SATURDAY, APRIL 23, 2011 (113-16) 09:00 - 07 - 07:00
SUNDAY, APRIL 24, 2011 (114-16) 09:00 - 07 - 07:00
MONDAY, APRIL 25, 2011 (115-17) 09:00 - 07 - 07:00
THURSDAY JUNE 2, 2011 (153-22) 09:00 - 07 - 07:00
SUNDAY, JUNE 12, 2011 (163-23) 09:00 - 07 - 07:00
MONDAY, JUNE 13, 2011 (164-24) 09:00 - 07 - 07:00
WEDNESDAY, JUNE 22, 2011 (173-25) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 21, 2012 (08-052) 09:00 - 07 - 07:00
PL/SQL procedure successfully completed.
SQL >
SQL > start
2 print_dates ("FREQ = EASTER;',")
to_timestamp_tz 3 (January 1, 2010 09:00 "," DD-MON-YYYY HH24:MI:SS'), 10);
4 end;
7 m
-->
SUNDAY, 4 APRIL 2010 (094-13) 09:00 - 07 - 07:00
SUNDAY, APRIL 24, 2011 (114-16) 09:00 - 07 - 07:00
SUNDAY, APRIL 8, 2012 (099-14) 09:00 - 07 - 07:00
SUNDAY, MARCH 31, 2013 (090-13) 09:00 - 07 - 07:00
SUNDAY, APRIL 20, 2014 (110-16) 09:00 - 07 - 07:00
SUNDAY, APRIL 5, 2015 (095-14) 09:00 - 07 - 07:00
SUNDAY, MARCH 27, 2016 (087-12) 09:00 - 07 - 07:00
SUNDAY, APRIL 16, 2017 (106-15) 09:00 - 07 - 07:00
SUNDAY, APRIL 1, 2018 (091-13) 09:00 - 07 - 07:00
SUNDAY, APRIL 21, 2019 (111-16) 09:00 - 07 - 07:00
PL/SQL procedure successfully completed.
SQL > Rem report Carnival
SQL > start
2 print_dates ("FREQ = EASTER; BYSETPOS =-47; BYDAY = SUN, MON, MAR, SEA, GAME, SAT, SAM '.
to_timestamp_tz 3 (January 1, 2010 09:00 "," DD-MON-YYYY HH24:MI:SS'), 10);
4 end;
7 m
-->
TUESDAY, 16 FEBRUARY 2010 (07-047) 09:00 - 07 - 07:00
TUESDAY, MARCH 8, 2011 (067-10) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 21, 2012 (08-052) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 12, 2013 (07-043) 09:00 - 07 - 07:00
TUESDAY, MARCH 4, 2014 (063-10) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 17, 2015 (08-048) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 9, 2016 (040-06) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 28, 2017 (059-09) 09:00 - 07 - 07:00
TUESDAY, FEBRUARY 13, 2018 (07-044) 09:00 - 07 - 07:00
TUESDAY, MARCH 5, 2019 (064-10) 09:00 - 07 - 07:00
PL/SQL procedure successfully completed.
SQL > exit
Tags: Database
Similar Questions
-
A "renovated" old 2 months iPod Touch 5th generation just recently started losing its charge the battery during the night. East - the developer of a battery issue?
Perhaps. Where did you buy this device?
-
Found an ipod touch, 5 gen, MOSS oak case of Survivor, perhaps lost to the East of Dallas, TX, serial No.: CC * MJF
< personal information under the direction of the host >
You might hope that the owner might be able to locate the iPod Touch, if it
Unit is able to access and use internet FindMyMac/iPhone.
You can report the device that you have found to the local police; don't know if they
could help or would help to unify the product with the owner. Some info on
How managing an iDevice found may be contained in support topics, like:
• If your iPhone, iPad or iPod touch is lost or stolen - Apple Support
The topics generally appear in a search:
https://DuckDuckGo.com/?q=How + to + report + iPod found ++ & t = ffsb
Generally most lost objects are reported to local police, since
Apple itself doesn't seem to have no way to contact the owners of a
directly lost product. -These CSA discussions are for the most part, users
like you, who are volunteering to help others; without compensation...
We have therefore no channel special contact Apple on a product lost.
Serial numbers and identification of a product will not be
the topic thread and will be deleted. as a support policy.
Sorry that I am of no use to help you return the iPod touch 5
for the owner. He or she may be able to find it, if they enable the features in
the device and in any other Apple device to follow.
"Find my iPhone is the only way that you can follow or locate a lost device or missing.
If find my iPhone is not activated on your device until missing, there is no other
Service from Apple that can find, follow or flag, otherwise your device for you. »
In any case... good luck!
-
Download drivers links Middle East Web site cannot be downloaded
Hello
I'm here to tell you that the drivers download links Middle East Web site cannot be downloaded.
Try to solve this problem as soon as possible.Good luck
HussainWhat drivers you are trying to download?
What model of laptop do you have? -
Satellite L755-M1E6 - cannot find this model on the UAE UNITED - Middle East site
Dear friends,
I bought a new model of Satellite (L755-M1E6) in Abu Dhabi.
But I could not see this particular model number in the United Arab Emirates UNITED - Middle East site.
Normally, we could see that the model number is in the format - "L755 - 000.
i.e. after L755 - only three digits.Here in my laptop it shows 4 digits, L755-M1E6.
support Web site shows as "PSK2YE-0E602UAR" model number against the serial number.Can you please clear my doubt that it is an original toshiba laptop? What is a model?
Or, please help me to know the correct model number.Please help me
Hmm, what is your serial number?
You said that PSK2YE-0E602UA model number.
The PSK2YE series definitely belongs to the EMEA region.
I could find the drivers for Satellite L755 PSK2YE series on the European driver Toshiba page. -
East-adapter for Yoga 11 (45W) compatible to Yoga 13?
East-adapter for Yoga 11 (45W) compatible to Yoga 13? In the photos, it seems it's the same plug, but it would be great if someone let me know.
-Joon
Apparently, it is compatible. (I bought one and now I'm chargng my 13 Yoga with 45W adapter)
-
We bought our hp1513 in the Middle East, who now lives in Cyprus and inks available does not
original title: we purchased our hp1513 in the Middle East, now will not work living in Cyprus and inks available here - is there a solution please?
We bought our HP1513 in the Middle East and moved to Cyprus, bought new ink today and it does not work. We used to use 132 cartridges before but you can buy only 338 here - is there a solution to this please?
Hello
It is a question only of HP Support capable of responding.
I would recommend contacting your local HP Office.
Kind regards.
-
Need to install Thai and arbic on my xp OS.
Hi there I was wondering what would cause my add language option butoon must be disabled, whiles add East Asia was available. any help to solve this problem. I need to install Thai and arbic on my xp OS.
See you soon
Hello
You can check these links:
To install the files for East Asian on your computer
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/int_pr_install_languages.mspx?mfr=true how to enable support of the Arabic language in Windows XPhttp://support.microsoft.com/kb/821080how to add and enable additional languages in Windows
http://support.Microsoft.com/kb/177561 -
Windows help installing XP East Asian language
I'm running on the English version of windows XP, attempting to display Chinese. I went through several websites of the installation (God, I even youtube it)
currect me if I'm doing something wrong:
1. I go to the Control Panel,
2. click on regional and language, options
3 languages, then I click this checkbox "install files for East Asian languages".
4. a messge pop up to say a word on I need to 230 MB of disk space, which is no problem, I pop my Windows XP disc in there, authentic u - go, it begins to install.
5. then, after about 10 ~ 15 seconds installation, it tells me to restart my PC, so I reboot, no problem at all, everything is going very wellHOWEVER
After I restarted my PC, the newspaper at the rear, the samething again, I'm going to control panel, click regional and language options, and then click languages, and then I click on details, under settings, click on Add. A pop window up wher under input language, there is no choice of Chinese, not even the Japanese or Koreans, the list is identical to the front...
things I checked
1. Yes, I am the administrator, I'm running in windows Xp Professional SP3
2. Yes the "install files for East Asian languages" is selected. So I installed, it's just not there!Create a new user account and verify.
How to create and configure user accounts in Windows XP
http://support.Microsoft.com/kb/279783Also check out this link:
Installation of the files for the languages of Eastern Asia without CD
http://forums.techarena.in/Windows-XP-support/873146.htm -
My pictures are being stretched East & West.
My pictures are being stretched East & West or left and right. This distorts the image. How can I stop? I'm Windows Explorer to see my photos.
Seems that you have a screen 16:9 wide screen and
View full screen 4:3 pictures. It would be stretch them.In order to view an image full screen on an almost square
screen in the shape of rectangle... one of two things has to happen...
the image will be stretched or it needs to be cropped to fit to the
aspect ratio of the screen.Setting the resolution of your screen to the "Native resolution".
your monitor should clear this but your 4:3 pix will not
fill a 16:9 screen.Probably not "the" answer... but the following article can enlighten us:
Troubleshooting of computer monitor: the stretch on the side
http://ask-Leo.com/troubleshooting_computer_monitor_problems_the_sideways_stretch.html(FWIW... before you change the resolution of your screen, it can be)
a good idea to create a System Restore Point so that you can
restore the current settings if you're not satisfied of the
new result.)To change your screen resolution settings... Click right on your
desktops and from the menu choose...Properties / Settings tab / drag.
-
East Asian for XP Professional language files - where can I download?
I have just replaced a bad hard drive, used the restore disc to restore XP Professional but lost all of our keyboard IME and the Korean language. When you go into Control Panel must be East Asian Language must be installed via CD but operating system came preloaded.
How and where can I get these downloaded files?
Thank you very much!
James
Hi James,
You can download the language files, you need the link below.
http://Office.Microsoft.com/en-us/help/HA010347361033.aspx
Hope this helps you solve your problem.
-
Added languages of East Asia.
Attempt to acivate/install files for East Asian languages using Control Panel. Pop-up message asking home ed. SP3 CD to be inserted in the CD drive. Since the SP3 update has been downloaded with automatic updates, I have no CD. How to solve the problem?
Hello
Please refer to this article for help:
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/int_pr_install_languages.mspx?mfr=true -
SP3-cannot install lang East Asia
original title: SP3 and lang East Asia
I have XP SP3, but a disc with i386/lang, I didn't ask my East Asian language option. If I have SP3 why my lang is not working/install? Find a download to fix this problem?
Hi ikonoklast61,
Unfortunately, it is not possible to install the languages without CD. You can contact the computer manufacturer to obtain the help of the disk. Visit the below mentioned link.
Microsoft Windows XP - language files from the far East to be installed on your computer
-
Installation of East Asian languages files
When I inserted my Microsoft Office XP Professional disk in my computer to install the files for East Asian languages, my computer still says I need to insert the disc. I can't find a way to install the files without the disc, despite the search the Microsoft support Web site. What should I do?
Hi voyagerprouty,.
I think you use hard disk to install the East Asian language files. We recommend that you insert the Windows XP disc to continue and complete the installation.
For more information about installing East Asian language files, see the following article: install East Asian language files on your computerVisit our Microsoft answers feedback Forum and let us know what you think.
-
to change the clock to the time zone of the East, but it is in my time zone tab is downloadable
http://WindowsXP.MVPs.org/timezones.htm
Hope this works
Maybe you are looking for
-
Replace iTunes photo sync program form foto iPhoto
Hello. In short; iTunes wants to use iPhoto to sync photos on my iPhone instead of pictures, how can I change this? Earlier I did an update of the program of iPhoto on my mac, and since then, I have many problems with it. She went from iPhoto for pic
-
Why the 'options' window has changed and how can I change this back?
I went to open my window options under the Tools tab what I do every day because I have to clear the cache manually to resolve wifi problems. today when I opened it, instead of the unfamiliar floating window it opens a Web page in a new tab. I wonder
-
I read FF posts of the community, and it seems to be a problem with a lot of ppl. It happened for about 3 days now on all our computers at home and work. This cannot just be linked to a computer if this happens for many. I was wondering if there is a
-
How to get rid of. Ds_Store file. Help, please!
My MacBook Air cannot get rid of. Ds_Store file in my desktop screen, although I deleted it several times. I think this is related to the virus or malware. Please help me solve the problem. Thank you.
-
iPhone displays the incorrect password
Hello I'm new here. Recently, my iphone 5s shows incorrect password, everytime I try to connect to the wifi. Does anyone have the same problem and how to solve? I already reset settings of the network and even reset all the settings of the phone, but