Question: Consider defining a datatype called DateTimeInterval. It stores two instances of DateTime. The format of storing a constant value is: DateTimeInterval nightShift = {2019/09/20, 20:00}..{2019/09/21,

Consider defining a datatype called DateTimeInterval. It stores two instances of DateTime. The format of storing a constant value is:

DateTimeInterval nightShift = {2019/09/20, 20:00}..{2019/09/21, 04:00};

What advantages do we get from introducing this type? Discuss a scenario where it should not be implemented in any language. Provide sufficient reasons for both discussions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!