id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dateTime_CSTtoPST


If you live in Texas, then you are in the Central Standard Time (CST) zone. If you live in California, then you are in the Pacific Standard Time (PST) zone. Given a time in CST, convert it to PST! Assume all of the Strings are in the 24-hour time format, such as "00:00" for midnight and "12:00" for noon.


dateTime_CSTtoPST("12:00") → "10:00"
dateTime_CSTtoPST("13:00") → "11:00"
dateTime_CSTtoPST("01:00") → "23:00"

...Save, Compile, Run (ctrl-enter)

public String dateTime_CSTtoPST(String CST) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy