Inheritance: java.util.Date
Example #1
0
        internal static java.sql.Timestamp ClrTicksToJavaTimestamp(long ticks)
        {
            java.sql.Timestamp ts = new java.sql.Timestamp(0);
            ClrTicksToJavaDate(ts, ticks);

//			int nanos = (int)(ticks % TimeSpan.TicksPerMillisecond) * 100;
//			ts.setNanos(javaTimestamp.getNanos() + nanos);

            return(ts);
        }
Example #2
0
        internal static long JavaTimestampToClrTicks(java.sql.Timestamp ts)
        {
            long ticks = JavaDateToClrTicks(ts);

            // Extra ticks, for dbs that can save them.
            // We do not use it, since .net does not saves ticks for fractial milliseconds
            // long ticksLessThanMilliseconds = (ts.getNanos()*100) % TimeSpan.TicksPerMillisecond;
            // ticks += ticksLessThanMilliseconds;

            return(ticks);
        }
Example #3
0
		internal static java.sql.Timestamp ClrTicksToJavaTimestamp(long ticks)
		{
			java.sql.Timestamp ts = new java.sql.Timestamp(0);
			ClrTicksToJavaDate(ts, ticks);

//			int nanos = (int)(ticks % TimeSpan.TicksPerMillisecond) * 100;
//			ts.setNanos(javaTimestamp.getNanos() + nanos);

			return ts;
		}