Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.values.storable.TimeValue unpackTime() throws java.io.IOException
            internal virtual TimeValue UnpackTime()
            {
                long nanosOfDayLocal = UnpackLong();
                int  offsetSeconds   = UnpackInteger();

                return(time(TemporalUtil.nanosOfDayToUTC(nanosOfDayLocal, offsetSeconds), ZoneOffset.ofTotalSeconds(offsetSeconds)));
            }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public final void writeTime(java.time.OffsetTime offsetTime) throws E
        public override void WriteTime(OffsetTime offsetTime)
        {
            long nanosOfDayUTC = TemporalUtil.getNanosOfDayUTC(offsetTime);
            int  offsetSeconds = offsetTime.Offset.TotalSeconds;

            WriteTime(nanosOfDayUTC, offsetSeconds);
        }
Ejemplo n.º 3
0
 private TimeValue(OffsetTime value)
 {
     this._value         = value;
     this._nanosOfDayUTC = TemporalUtil.getNanosOfDayUTC(this._value);
 }