题目
题目概述
*3.30(当前时间)修改编程练习题2.8,以12小时时钟制显示小时数
运行示例
Enter the time zone offset to GMT: -5
The current time is 4:50:34 AM
编程练习题2.8
欢迎点击这里前往我的2.8博文,或复制url到浏览器:
https://blog.csdn.net/weixin_46356698/article/details/119783225
import java.util.Scanner;
public class Test2_8 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter the time zone offset to GMT:");
int offset = input.nextInt();
// Obtain the total milliseconds since midnight, Jan 1, 1970
long totalMilliseconds =