org.glassfish.jersey.examples.helloworld.spring
Class DateTimeService

java.lang.Object
  extended by org.glassfish.jersey.examples.helloworld.spring.DateTimeService

public class DateTimeService
extends Object

Simple date service that provides actual time and date info.

Author:
Marko Asplund (marko.asplund at yahoo.com)

Constructor Summary
DateTimeService()
           
 
Method Summary
 Date getDateTime()
          Get current date and time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeService

public DateTimeService()
Method Detail

getDateTime

public Date getDateTime()
Get current date and time.

Returns:
current date.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.