Package org.stjs.javascript

Examples of org.stjs.javascript.Date


  }

  @Test
  public void testParse() {
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin"));
    Date d = new Date("2011-11-10 10:00:00");
    assertEquals(10, (int) d.getDate());
    assertEquals(9, (int) d.getUTCHours());
  }
View Full Code Here


  @Test
  public void testDate() {
    Object result = GeneratorTestHelper.execute(Json4.class);
    assertProperty("Class4", result, "type");
    Date d = (Date) getProperty(result, "date");
    assertEquals(11, d.getMonth(), 0.1);
    assertEquals(18, d.getHours(), 0.1);
  }
View Full Code Here

TOP

Related Classes of org.stjs.javascript.Date

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.