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,
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
Get step-by-step solutions from verified subject matter experts
