Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Add now() to provide static import access to the current date and time
Browse files Browse the repository at this point in the history
git-svn-id: https://threeten.svn.sourceforge.net/svnroot/threeten/trunk/jsr-310-ri@70 291d795c-afe8-5c46-8ee5-bf9dd72e1864
  • Loading branch information
jodastephen committed Jul 20, 2007
1 parent 86dc815 commit 68ab26e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/javax/time/Moments.java
Expand Up @@ -35,11 +35,20 @@


/** /**
* A set of utility methods for working with moments in the Java Date Framework. * A set of utility methods for working with moments in the Java Date Framework.
* *
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */
public final class Moments { public final class Moments {


/**
* Provides access to the current time.
*
* @return the current time, never null
*/
public static Now now() {
return Now.system();
}

//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* Gets an instance of Year. * Gets an instance of Year.
Expand Down

0 comments on commit 68ab26e

Please sign in to comment.