directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1493750 - /directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java
Date Mon, 17 Jun 2013 13:14:42 GMT
Author: pamarcelot
Date: Mon Jun 17 13:14:42 2013
New Revision: 1493750

URL: http://svn.apache.org/r1493750
Log:
Added a method to get the fraction of a Generalized Time value.

Modified:
    directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java

Modified: directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java?rev=1493750&r1=1493749&r2=1493750&view=diff
==============================================================================
--- directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java
(original)
+++ directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/GeneralizedTime.java
Mon Jun 17 13:14:42 2013
@@ -191,8 +191,8 @@ public class GeneralizedTime implements 
         calendar.setTime( date );
         setUp( calendar );
     }
-    
-    
+
+
     /**
      * Creates a new instance of GeneralizedTime, based on the given Calendar object.
      * Uses <pre>Format.YEAR_MONTH_DAY_HOUR_MIN_SEC</pre> as default format and
@@ -205,7 +205,7 @@ public class GeneralizedTime implements 
         setUp( calendar );
     }
 
-    
+
     private void setUp( Calendar calendar )
     {
         if ( calendar == null )
@@ -802,13 +802,14 @@ public class GeneralizedTime implements 
     {
         return calendar.getTimeInMillis();
     }
-    
+
+
     public Date getDate()
     {
         return calendar.getTime();
     }
 
-    
+
     public int getYear()
     {
         return calendar.get( Calendar.YEAR );
@@ -820,13 +821,13 @@ public class GeneralizedTime implements 
         return calendar.get( Calendar.MONTH );
     }
 
-    
+
     public int getDay()
     {
         return calendar.get( Calendar.DATE );
     }
 
-    
+
     public int getHour()
     {
         return calendar.get( Calendar.HOUR_OF_DAY );
@@ -838,12 +839,19 @@ public class GeneralizedTime implements 
         return calendar.get( Calendar.MINUTE );
     }
 
-    
+
     public int getSeconds()
     {
         return calendar.get( Calendar.SECOND );
     }
 
+
+    public int getFraction()
+    {
+        return calendar.get( Calendar.MILLISECOND );
+    }
+
+
     /**
      * 
      *



Mime
View raw message