Examples of SimpleDateFormatDateService


Examples of org.jclouds.date.internal.SimpleDateFormatDateService

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Zone expected() {
      return Zone.builder()
              .id("13020128040171887099")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-10-19T16:42:54.131"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a"))
              .name("us-central1-a")
              .description("us-central1-a")
              .status(Zone.Status.DOWN)
              .addMaintenanceWindow(Zone.MaintenanceWindow.builder()
                      .name("2012-11-10-planned-outage")
                      .description("maintenance zone")
                      .beginTime(new SimpleDateFormatDateService().iso8601DateParse("2012-11-10T20:00:00.000"))
                      .endTime(new SimpleDateFormatDateService().iso8601DateParse("2012-12-02T20:00:00.000"))
                      .build())
              .build();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.