/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TimestampTest.java | 20 import java.sql.Timestamp; 34 static class MockTimestamp extends Timestamp { 137 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testTimestamplong() 141 Timestamp mockTimestamp = new MockTimestamp(TIME_TEST1); in testTimestamplong() 174 Timestamp theTimestamp = new Timestamp(element[0], element[1], in testTimestampintintintintintintint() 183 new Timestamp(element[0], element[1], element[2], element[3], in testTimestampintintintintintintint() 200 Timestamp theTimestamp = new Timestamp(TIME_TEST1); in testSetTimelong() 219 Timestamp theTimestamp = new Timestamp(element); in testGetTime() 231 Timestamp theTimestamp = new Timestamp(TIME_ARRAY[i]); in testGetYear() 243 Timestamp theTimestamp = new Timestamp(TIME_ARRAY[i]); in testGetMonth() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | timestamp.pb.cc | 40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, seconds_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, nanos_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 46 Timestamp::default_instance_, in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 51 sizeof(Timestamp), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _internal_metadata_), in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Timestamp, _is_default_instance_)); in protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto() 67 Timestamp_descriptor_, &Timestamp::default_instance()); in protobuf_RegisterTypes() 73 delete Timestamp::default_instance_; in protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto() 92 Timestamp::default_instance_ = new Timestamp(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto() 93 Timestamp::default_instance_->InitAsDefaultInstance(); in protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto() [all …]
|
D | timestamp.pb.h | 40 class Timestamp; variable 44 class LIBPROTOBUF_EXPORT Timestamp : public ::google::protobuf::Message { 46 Timestamp(); 47 virtual ~Timestamp(); 49 Timestamp(const Timestamp& from); 51 inline Timestamp& operator=(const Timestamp& from) { 61 static const Timestamp& default_instance(); 63 void UnsafeArenaSwap(Timestamp* other); 64 void Swap(Timestamp* other); 68 inline Timestamp* New() const { return New(NULL); } in New() [all …]
|
D | timestamp.proto | 44 // A Timestamp represents a point in time independent of any time zone 56 // Example 1: Compute Timestamp from POSIX `time()`. 58 // Timestamp timestamp; 62 // Example 2: Compute Timestamp from POSIX `gettimeofday()`. 67 // Timestamp timestamp; 71 // Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. 79 // Timestamp timestamp; 83 // Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. 87 // Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) 91 // Example 5: Compute Timestamp from current time in Python. [all …]
|
D | duration.proto | 46 // or "month". It is related to Timestamp in that the difference between 47 // two Timestamp values is a Duration and it can be added or subtracted 48 // from a Timestamp. Range is approximately +-10,000 years. 52 // Timestamp start = ...; 53 // Timestamp end = ...; 67 // Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. 69 // Timestamp start = ...; 71 // Timestamp end = ...;
|
/external/protobuf/src/google/protobuf/util/ |
D | time_util.h | 51 typedef google::protobuf::Timestamp Timestamp; typedef 79 static string ToString(const Timestamp& timestamp); 80 static bool FromString(const string& value, Timestamp* timestamp); 95 static Timestamp GetCurrentTime(); 97 static Timestamp GetEpoch(); 123 static Timestamp NanosecondsToTimestamp(int64 nanos); 124 static Timestamp MicrosecondsToTimestamp(int64 micros); 125 static Timestamp MillisecondsToTimestamp(int64 millis); 126 static Timestamp SecondsToTimestamp(int64 seconds); 132 static int64 TimestampToNanoseconds(const Timestamp& timestamp); [all …]
|
D | time_util.cc | 44 using google::protobuf::Timestamp; 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() 75 Timestamp result; in CreateNormalized() 145 string TimeUtil::ToString(const Timestamp& timestamp) { in ToString() 149 bool TimeUtil::FromString(const string& value, Timestamp* timestamp) { in FromString() 155 *timestamp = CreateNormalized<Timestamp>(seconds, nanos); in FromString() 159 Timestamp TimeUtil::GetCurrentTime() { in GetCurrentTime() 163 return CreateNormalized<Timestamp>(seconds, nanos); in GetCurrentTime() 166 Timestamp TimeUtil::GetEpoch() { return Timestamp(); } in GetEpoch() 285 Timestamp TimeUtil::NanosecondsToTimestamp(int64 nanos) { in NanosecondsToTimestamp() [all …]
|
D | time_util_test.cc | 44 using google::protobuf::Timestamp; 50 Timestamp begin, end; in TEST() 61 Timestamp time = TimeUtil::NanosecondsToTimestamp(-1); in TEST() 92 Timestamp begin, end; in TEST() 345 Timestamp begin, end; in TEST() 354 Timestamp t1 = begin + d / 4; in TEST() 355 Timestamp t2 = end - d / 4; in TEST()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime() 46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime() 47 AssertRoundtrip(new Timestamp(), new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)); in FromAndToDateTime() 48 …AssertRoundtrip(new Timestamp { Nanos = 1000000}, new DateTime(1970, 1, 1, 0, 0, 0, 1, DateTimeKin… in FromAndToDateTime() 49 …AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime() 50 …AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime() 51 …AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime() 57 … var t1 = new Timestamp { Seconds = 1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 60 … var t2 = new Timestamp { Seconds = -1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 65 [TestCase(Timestamp.UnixSecondsAtBclMinValue - 1, Timestamp.MaxNanos)] [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | Timestamp.cs | 35 …typeof(global::Google.Protobuf.WellKnownTypes.Timestamp), global::Google.Protobuf.WellKnownTypes.T… in TimestampReflection() 97 public sealed partial class Timestamp : pb::IMessage<Timestamp> { class 98 …ivate static readonly pb::MessageParser<Timestamp> _parser = new pb::MessageParser<Timestamp>(() =… 99 public static pb::MessageParser<Timestamp> Parser { get { return _parser; } } 109 public Timestamp() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp 115 public Timestamp(Timestamp other) : this() { in Timestamp() method in Google.Protobuf.WellKnownTypes.Timestamp 120 public Timestamp Clone() { in Clone() 121 return new Timestamp(this); in Clone() 156 return Equals(other as Timestamp); in Equals() 159 public bool Equals(Timestamp other) { in Equals() [all …]
|
D | TimestampPartial.cs | 39 public partial class Timestamp : ICustomDiagnosticMessage class 60 public static Duration operator -(Timestamp lhs, Timestamp rhs) in operator -() 76 public static Timestamp operator +(Timestamp lhs, Duration rhs) in operator +() 92 public static Timestamp operator -(Timestamp lhs, Duration rhs) in operator -() 146 public static Timestamp FromDateTime(DateTime dateTime) in FromDateTime() 155 …return new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds… in FromDateTime() 166 public static Timestamp FromDateTimeOffset(DateTimeOffset dateTimeOffset) in FromDateTimeOffset() 173 internal static Timestamp Normalize(long seconds, int nanoseconds) in Normalize() 184 return new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in Normalize()
|
D | TimeExtensions.cs | 52 public static Timestamp ToTimestamp(this DateTime dateTime) in ToTimestamp() 54 return Timestamp.FromDateTime(dateTime); in ToTimestamp() 65 public static Timestamp ToTimestamp(this DateTimeOffset dateTimeOffset) in ToTimestamp() 67 return Timestamp.FromDateTimeOffset(dateTimeOffset); in ToTimestamp()
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 34 import com.google.protobuf.Timestamp; 47 Timestamp start = TimeUtil.parseTimestamp("0001-01-01T00:00:00Z"); in testTimestampStringFormat() 48 Timestamp end = TimeUtil.parseTimestamp("9999-12-31T23:59:59.999999999Z"); in testTimestampStringFormat() 56 Timestamp value = TimeUtil.parseTimestamp("1970-01-01T00:00:00Z"); in testTimestampStringFormat() 67 value = Timestamp.newBuilder().setNanos(10).build(); in testTimestampStringFormat() 69 value = Timestamp.newBuilder().setNanos(10000).build(); in testTimestampStringFormat() 71 value = Timestamp.newBuilder().setNanos(10000000).build(); in testTimestampStringFormat() 86 private final Timestamp[] values; 87 public ParseTimestampThread(String[] strings, Timestamp[] values) { in ParseTimestampThread() 96 Timestamp result; in run() [all …]
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 34 import com.google.protobuf.Timestamp; 94 public static String toString(Timestamp timestamp) in toString() 128 public static Timestamp parseTimestamp(String value) throws ParseException { in parseTimestamp() 262 public static Timestamp createTimestampFromMillis(long milliseconds) { in createTimestampFromMillis() 282 public static long toMillis(Timestamp timestamp) { in toMillis() 300 public static Timestamp createTimestampFromMicros(long microseconds) { in createTimestampFromMicros() 320 public static long toMicros(Timestamp timestamp) { in toMicros() 338 public static Timestamp createTimestampFromNanos(long nanoseconds) { in createTimestampFromNanos() 354 public static long toNanos(Timestamp timestamp) { in toNanos() 368 public static Timestamp getCurrentTime() { in getCurrentTime() [all …]
|
/external/llvm/tools/dsymutil/ |
D | BinaryHolder.cpp | 46 sys::TimeValue Timestamp) { in GetMemoryBuffersForFile() argument 51 if (auto ErrOrArchiveMembers = GetArchiveMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile() 58 MapArchiveAndGetMemberBuffers(Filename, Timestamp)) in GetMemoryBuffersForFile() 90 sys::TimeValue Timestamp) { in GetArchiveMemberBuffers() argument 109 if (Timestamp != sys::TimeValue::PosixZeroTime() && in GetArchiveMemberBuffers() 110 Timestamp != Child.getLastModified()) { in GetArchiveMemberBuffers() 135 sys::TimeValue Timestamp) { in MapArchiveAndGetMemberBuffers() argument 166 return GetArchiveMemberBuffers(Filename, Timestamp); in MapArchiveAndGetMemberBuffers() 183 BinaryHolder::GetObjectFiles(StringRef Filename, sys::TimeValue Timestamp) { in GetObjectFiles() argument 184 auto ErrOrMemBufferRefs = GetMemoryBuffersForFile(Filename, Timestamp); in GetObjectFiles()
|
D | BinaryHolder.h | 57 GetArchiveMemberBuffers(StringRef Filename, sys::TimeValue Timestamp); 65 MapArchiveAndGetMemberBuffers(StringRef Filename, sys::TimeValue Timestamp); 77 GetMemoryBuffersForFile(StringRef Filename, sys::TimeValue Timestamp); 94 sys::TimeValue Timestamp = sys::TimeValue::PosixZeroTime()); 100 sys::TimeValue Timestamp = sys::TimeValue::PosixZeroTime()) { 101 auto ErrOrObjFile = GetObjectFiles(Filename, Timestamp);
|
D | DebugMap.h | 96 sys::TimeValue Timestamp); 151 sys::TimeValue getTimestamp() const { return Timestamp; } in getTimestamp() 164 DebugMapObject(StringRef ObjectFilename, sys::TimeValue Timestamp); 167 sys::TimeValue Timestamp; variable 182 std::swap(Timestamp, RHS.Timestamp); 189 Timestamp = std::move(RHS.Timestamp); in DebugMapObject()
|
D | DebugMap.cpp | 24 sys::TimeValue Timestamp) in DebugMapObject() argument 25 : Filename(ObjectFilename), Timestamp(Timestamp) {} in DebugMapObject() 66 sys::TimeValue Timestamp) { in addDebugMapObject() argument 67 Objects.emplace_back(new DebugMapObject(ObjectFilePath, Timestamp)); in addDebugMapObject() 130 YamlDMO(IO &io) { Timestamp = 0; } in YamlDMO() 135 sys::TimeValue::SecondsType Timestamp; member 151 io.mapOptional("timestamp", Norm->Timestamp); in mapping() 205 Timestamp = Obj.getTimestamp().toEpochTime(); in YamlDMO() 244 TV.fromEpochTime(Timestamp); in denormalize()
|
D | MachODebugMapParser.cpp | 68 void switchToNewDebugMapObject(StringRef Filename, sys::TimeValue Timestamp); 114 sys::TimeValue Timestamp) { in switchToNewDebugMapObject() argument 121 CurrentObjectHolder.GetFilesAs<MachOObjectFile>(Path, Timestamp); in switchToNewDebugMapObject() 135 CurrentDebugMapObject = &Result->addDebugMapObject(Path, Timestamp); in switchToNewDebugMapObject() 350 sys::TimeValue Timestamp; in handleStabSymbolTableEntry() local 351 Timestamp.fromEpochTime(Value); in handleStabSymbolTableEntry() 352 return switchToNewDebugMapObject(Name, Timestamp); in handleStabSymbolTableEntry()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | JavaBeanTimeStampTest.java | 19 import java.sql.Timestamp; 28 Timestamp stamp = new Timestamp(1000000000000L); in testLoadDefaultJavaSqlTimestamp() 48 Timestamp stamp = new Timestamp(1000000000000L); in testLoadDefaultJavaSqlTimestampNoGlobalTag()
|
D | JavaBeanWithNullValues.java | 18 import java.sql.Timestamp; 29 private Timestamp timestamp; 91 public Timestamp getTimestamp() { in getTimestamp() 95 public void setTimestamp(Timestamp timestamp) { in setTimestamp()
|
D | JavaBeanWithSqlTimestamp.java | 19 private java.sql.Timestamp timestamp; 22 public java.sql.Timestamp getTimestamp() { in getTimestamp() 26 public void setTimestamp(java.sql.Timestamp timestamp) { in setTimestamp()
|
D | JavaBeanWithNullValuesTest.java | 18 import java.sql.Timestamp; 88 javaBeanWithNullValues.setTimestamp(new Timestamp(System.currentTimeMillis())); in testNullStringAndBoolean() 113 javaBeanWithNullValues.setTimestamp(new Timestamp(System.currentTimeMillis())); in testNoRootTag() 147 javaBeanWithNullValues.setTimestamp(new Timestamp(System.currentTimeMillis())); in dumpJavaBeanWithNullValues() 156 this.representers.put(java.sql.Timestamp.class, new RepresentTime()); in CustomRepresenter() 183 ((java.sql.Timestamp) data).toString()); in representData()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | JsonFormatterTest.cs | 334 Assert.AreEqual(WrapInQuotes(expected), new Timestamp { Nanos = nanos }.ToString()); in TimestampStandalone() 349 [TestCase(1, Timestamp.MaxNanos + 1)] 350 [TestCase(Timestamp.UnixSecondsAtBclMaxValue + 1, 0)] 351 [TestCase(Timestamp.UnixSecondsAtBclMinValue - 1, 0)] 354 var timestamp = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in TimestampStandalone_NonNormalized() 361 var message = new TestWellKnownTypes { TimestampField = new Timestamp() }; in TimestampField() 468 … JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Timestamp.Descriptor))); in AnyWellKnownType()
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/ |
D | Impl_RowSet.java | 37 import java.sql.Timestamp; 227 public void setTimestamp(int parameterIndex, Timestamp theTimestamp, in setTimestamp() 231 public void setTimestamp(int parameterIndex, Timestamp theTimestamp) in setTimestamp() 505 public Timestamp getTimestamp(int columnIndex, Calendar cal) in getTimestamp() 510 public Timestamp getTimestamp(int columnIndex) throws SQLException { in getTimestamp() 514 public Timestamp getTimestamp(String columnName, Calendar cal) in getTimestamp() 519 public Timestamp getTimestamp(String columnName) throws SQLException { in getTimestamp() 754 public void updateTimestamp(int columnIndex, Timestamp x) in updateTimestamp() 758 public void updateTimestamp(String columnName, Timestamp x) in updateTimestamp() 1251 public void setTimestamp(String parameterName, Timestamp theTimestamp) in setTimestamp() [all …]
|