Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.model
Class DateUtils

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.model.DateUtils

public class DateUtils
extends Object

Parse and encode W3c dates. Only UTC dates are supported (ending in Z): YYYY-MM-DDThh:mm:ssZ (without milliseconds) We use a custom parser since it should work on GWT too.

Author:
Bogdan Stefanescu

Method Summary
static String formatDate(Date date)
           
static void main(String[] args)
           
static Date parseDate(String date)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseDate

public static Date parseDate(String date)

formatDate

public static String formatDate(Date date)

main

public static void main(String[] args)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.