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


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

The direction for Q3

1 of 390 articles shown, currently no other people reading this forum.
From: Christopher M.
Date: Tue 26th May 2020, 7:23am


"Jichunyang Li" <22*7*0*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> For task 3, the schedule (workday, Saturday, and Sunday) and stopping patterns of each line should be 
> considered, right? Thanks.

The simplest approach is to first determine 'today', using the date command,
and to then only consider trips running on that day.

While that work needs to run first (very early) in your script, you may wish to first assume that every day
is, say, Monday, and then work with those trips.

Related articles

The direction for Q3 (all 6) RSS
├─ original   Sun 24th May 2020, 4:14pm, Jichunyang L.
├─ reply 1   Mon 25th May 2020, 8:54am, Lee dB.
├─ reply 2   Mon 25th May 2020, 8:56am, Jichunyang L.  O.P.
├─ reply 3   Mon 25th May 2020, 1:43pm, Christopher M.
├─ reply 4   Mon 25th May 2020, 3:47pm, Jichunyang L.  O.P.
└─ THIS   Tue 26th May 2020, 7:23am, Christopher M.
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  2:34pm Sep 18 2020