import nl.rutgerkok.madura.datetime.MaduraDate; public class DateTimeExample { public static void main(String[] args) { MaduraDate now = new MaduraDate(); String formattedDate = now.format("yyyy-MM-dd HH:mm:ss"); int year = now.getYear(); int month = now.getMonth(); int day = now.getDay(); MaduraDate afterOneHour = now.addHours(1); } }


上一篇:
下一篇:
切换中文