static public void main(String args[]) throws Exception { test("sec", "PT1S"); test("secs", "PT1S"); test("minute", "PT1M"); test("minutes", "PT1M"); test("hour", "PT1H"); test("hours", "PT1H"); test("hr", "PT1H"); test("day", "P1D"); test("days", "P1D"); test("week", "P7D"); test("weeks", "P7D"); test("month", "P1M"); test("months", "P1M"); test("year", "P1Y"); test("years", "P1Y"); }
static public void main(String args[]) throws Exception { test("sec", "PT1S"); test("secs", "PT1S"); test("minute", "PT1M"); test("minutes", "PT1M"); test("hour", "PT1H"); test("hours", "PT1H"); test("hr", "PT1H"); test("day", "P1D"); test("days", "P1D"); test("week", "P7D"); test("weeks", "P7D"); test("month", "P1M"); test("months", "P1M"); test("year", "P1Y"); test("years", "P1Y"); }
static public void main(String args[]) throws Exception { test("sec", "PT1S"); test("secs", "PT1S"); test("minute", "PT1M"); test("minutes", "PT1M"); test("hour", "PT1H"); test("hours", "PT1H"); test("hr", "PT1H"); test("day", "P1D"); test("days", "P1D"); test("week", "P7D"); test("weeks", "P7D"); test("month", "P1M"); test("months", "P1M"); test("year", "P1Y"); test("years", "P1Y"); }