Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).
 
Options:
RSS cloud
Jump to:

Clarifications for Assignment 2

1 of 390 articles shown, currently no other people reading this forum.
photo
From: David M.
Date: Fri 22nd May 2020, 6:24pm
Actions: 
        Login-to-reply

 

My interpretation of the calendar files is that each record in calendar.txt
flags the days of the week when that service normally operates - columns 2 to 8.
They are always weekdays (i.e. flags 1,1,1,1,1,0,0) or Saturday (flags
0,0,0,0,0,1,0) or Sunday (flags 0,0,0,0,0,0,1).

However, the availabilility of services is modified by exceptions given in 
calendar_dates.txt:

If the exception code is 2 then that normal service, as specified in calendar.txt,
does not operate on that date.

If the exception code is 1 then that service is available on the that date instead
of the normal service.

The above is my interpretation and it seems to work for various weekdays, Saturdays,
Sundays and public holidays that I tested.

Related articles

Clarifications for Assignment 2 (all 41) RSS
├─ original   Fri 8th May 2020, 5:32pm, Jichunyang L.
├─ reply 1   Sun 10th May 2020, 11:18am, Christopher M.
├─ reply 2   Wed 13th May 2020, 9:55am, Jichunyang L.  O.P.
├─ reply 3   Wed 13th May 2020, 10:58am, Jichunyang L.  O.P.
├─ reply 4   Wed 13th May 2020, 3:44pm, Christopher M.
├─ reply 5   Wed 13th May 2020, 4:13pm, Jichunyang L.  O.P.
├─ reply 6   Wed 13th May 2020, 4:23pm, Christopher M.
├─ reply 7   Fri 15th May 2020, 3:11pm, Jichunyang L.  O.P.
├─ reply 8   Fri 15th May 2020, 5:12pm, Christopher M.
├─ reply 9   Mon 18th May 2020, 9:08am, Jichunyang L.  O.P.
├─ reply 10   Mon 18th May 2020, 10:39am, Christopher M.
├─ reply 11   Mon 18th May 2020, 12:51pm, Jichunyang L.  O.P.
├─ reply 12   Mon 18th May 2020, 5:09pm, Jichunyang L.  O.P.
├─ reply 13   Mon 18th May 2020, 5:38pm, Christopher M.
├─ reply 14   Fri 22nd May 2020, 9:54am, Jichunyang L.  O.P.
├─ reply 15   Fri 22nd May 2020, 10:02am, Christopher M.
├─ reply 16   Fri 22nd May 2020, 12:12pm, Lee dB.
├─ reply 17   Fri 22nd May 2020, 3:36pm, David M.
├─ reply 18   Fri 22nd May 2020, 3:40pm, Lee dB.
├─ reply 19   Fri 22nd May 2020, 5:02pm, Jordan M.
├─ reply 20   Fri 22nd May 2020, 6:21pm, Lee dB.
├─ THIS   Fri 22nd May 2020, 6:24pm, David M.
├─ reply 22   Sat 23rd May 2020, 5:06pm, Kang L.
├─ reply 23   Sat 23rd May 2020, 8:19pm, Jichunyang L.  O.P.
├─ reply 24   Sat 23rd May 2020, 10:02pm, David M.
├─ reply 25   Sat 23rd May 2020, 10:08pm, David M.
├─ reply 26   Mon 25th May 2020, 8:59am, Lee dB.
├─ reply 27   Mon 25th May 2020, 1:46pm, Christopher M.
├─ reply 28   Mon 25th May 2020, 1:56pm, Lee dB.
├─ reply 29   Mon 25th May 2020, 2:55pm, Christopher M.
├─ reply 30   Mon 25th May 2020, 7:08pm, Lee dB.
├─ reply 31   Tue 26th May 2020, 7:36am, Christopher M.
├─ reply 32   Tue 26th May 2020, 8:55am, Lee dB.
├─ reply 33   Tue 26th May 2020, 10:17am, Jichunyang L.  O.P.
├─ reply 34   Tue 26th May 2020, 5:44pm, Christopher M.
├─ reply 35   Tue 26th May 2020, 11:26pm, Jichunyang L.  O.P.
├─ reply 36   Wed 27th May 2020, 3:15pm, Christopher M.
├─ reply 37   Wed 27th May 2020, 4:01pm, David M.
├─ reply 38   Wed 27th May 2020, 11:19pm, Jichunyang L.  O.P.
├─ reply 39   Thu 28th May 2020, 9:43am, Christopher M.
└─ reply 40   Thu 28th May 2020, 10:36am, David M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020