Subversion Repository Public Repository

litesoft

Diff Revisions 853 vs 858 for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/SimpleTimestamp.java

Diff revisions: vs.
  @@ -112,6 +112,12 @@
112 112 this( new SimpleDate( pDate ), SimpleTime.timeComponents( pResolution, pDate ) );
113 113 }
114 114
115 + // public SimpleTimestamp( TimeRes pResolution, UtilDateAdaptor pDate )
116 + // throws IllegalArgumentException
117 + // {
118 + // this( pDate.getYear(), pDate.getMonth(), pDate.getDay(), SimpleTime.timeComponents( pResolution, pDate ) );
119 + // }
120 +
115 121 public SimpleTimestamp( UtilDateAdaptor pDate )
116 122 throws IllegalArgumentException
117 123 {
  @@ -124,6 +130,11 @@
124 130 this( new SimpleDate( pDate ), SimpleTime.timeComponents( pDate ) );
125 131 }
126 132
133 + public static SimpleTimestamp now()
134 + {
135 + return new SimpleTimestamp( new UtilDateAdaptor() );
136 + }
137 +
127 138 public SimpleTimestamp copy()
128 139 {
129 140 return new SimpleTimestamp( getYear(), getMonth(), getDay(), mTime.copy() );