Java Calendar toString方法 Java Calendar setTimeZone方法 Java 实例-拆分字符串 Java Calendar toString方法 package com.codingdict; import java.util.*; public class CalendarDemo { public static void main(String[] args) { // create a calendar Calendar cal = Calendar.getInstance(); // return a string representation of this calendar. System.out.println(cal.getTime().toString()); } } Java Calendar setTimeZone方法 Java 实例-拆分字符串