Between the second Sunday in March and the first Sunday in November,
Pacific Time is UTC -07:00
At all other times, Pacific Time is UTC -08:00.
You can assume the following functions are available:
A. dayofweek(date | datetime) = Indexed day of the week. Monday = 1,
Sunday = 7
B. day(date | datetime) = day of the month
C. month(date | datetime) = numeric month
Given a date, write a function that can be used to calculate the UTC time
that is the equivalent of midnight Pacific Time. You may choose the
language in which you write the function.
Example inputs and outputs:
A. 2016-04-04 -> 2016-04-04 07:00 UTC
B. 2016-11-16 -> 2016-11-16 08:00 UTC
The code needs detailed explanation
Expert Python Developer with expertise in Data Scientist and Machine Learnining with 5 years in relevant industry , have read your requirements and believe can do the task efficiently.
Looking forward to more details in chat.
Regards,
Uzair
hi your project looks like a simple one. i need to know what exactly you want, cause i got the idea that you need that day to daytime conversion function but its always helpful to understand where or in what context it will be used.
dear,
i'm a computer and communication engineer, i made many projects using C++ langauge and i can do your code using C++ , it will be a pleasure to work with you.