It's UWAweek 47

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 4 articles in this topic
Showing 4 of 445 articles.
Currently 45 other people reading this forum.


 UWA week 16 (1st semester, week 7) ↓
SVG not supported

Login to reply

👍x1
helpful
11:50am Fri 19th Apr, Alexandra H.

Hi Michael, I'm just trying to figure out the best way to compare years to determine past/future tense in the output. Is it okay to hard code the present year to use for comparison, or should we use something like the existing 'date' command from Bash? Thanks, Alexandra


SVG not supported

Login to reply

👍?
helpful
2:19pm Fri 19th Apr, Michael W.

"Alexandra Harrison" <22*8*0*6@s*u*e*t*u*a*e*u*a*> wrote:
> Hi Michael, > > I'm just trying to figure out the best way to compare years to determine past/future tense in the output. > Is it okay to hard code the present year to use for comparison, or should we use something like the existing 'date' command from Bash? > > Thanks, Alexandra


SVG not supported

Login to reply

👍?
helpful
2:22pm Fri 19th Apr, Michael W.

"Alexandra Harrison" <22*8*0*6@s*u*e*t*u*a*e*u*a*> wrote:
> Hi Michael, > > I'm just trying to figure out the best way to compare years to determine past/future tense in the output. > Is it okay to hard code the present year to use for comparison, or should we use something like the existing 'date' command from Bash? > > Thanks, Alexandra
Hi Alexandra, Given the actual range of survey dates, and the fact that we are coding this now, I took the pragmatic view that 2022 (and earlier) is past, while 2025+ is future. Still, nice idea. Cheers MichaelW 👨‍🎨


SVG not supported

Login to reply

👍?
helpful
9:13am Sun 21st Apr, Alexandra H.

Thanks for that, appreciate the pragmatism :)

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy