/third_party/flutter/flutter/packages/flutter/test/material/ |
D | date_picker_test.dart | 23 DateTime firstDate; 24 DateTime lastDate; 25 DateTime initialDate; 32 firstDate = DateTime(2001, DateTime.january, 1); 33 lastDate = DateTime(2031, DateTime.december, 31); 34 initialDate = DateTime(2016, DateTime.january, 15); 41 DateTime _selectedDate = DateTime(2016, DateTime.july, 26); 54 firstDate: DateTime(0), 55 lastDate: DateTime(9999), 58 onChanged: (DateTime value) { [all …]
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 43 DateTime utcMin = DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc); in FromAndToDateTime() 44 DateTime utcMax = DateTime.SpecifyKind(DateTime.MaxValue, DateTimeKind.Utc); 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() 58 …Assert.AreEqual(new DateTime(1970, 1, 1, 0, 0, 1, DateTimeKind.Utc).AddMilliseconds(1), t1.ToDateT… in ToDateTimeTruncation() 61 … Assert.AreEqual(new DateTime(1969, 12, 31, 23, 59, 59).AddMilliseconds(1), t2.ToDateTime()); in ToDateTimeTruncation() 87 private static void AssertRoundtrip(Timestamp timestamp, DateTime dateTime) in AssertRoundtrip()
|
/third_party/flutter/flutter/packages/flutter/test/cupertino/ |
D | date_picker_test.dart | 242 initialDateTime: DateTime.now(), 254 initialDateTime: DateTime.now(), 269 DateTime newDateTime; 277 onDateTimeChanged: (DateTime d) => newDateTime = d, 278 initialDateTime: DateTime(2018, 10, 10, 10, 3), 296 DateTime selectedDateTime; 305 onDateTimeChanged: (DateTime dateTime) => selectedDateTime = dateTime, 306 initialDateTime: DateTime(2018, 1, 1, 10, 30), 317 expect(selectedDateTime, DateTime(2018, 1, 1, 9, 30)); 327 onDateTimeChanged: (DateTime dateTime) => selectedDateTime = dateTime, [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/ |
D | time_test.dart | 12 final SystemClock clock = SystemClock.fixed(DateTime(1991, 8, 23)); 13 expect(clock.now(), DateTime(1991, 8, 23)); 17 final SystemClock clock = SystemClock.fixed(DateTime(1991, 8, 23)); 18 expect(clock.ago(const Duration(days: 10)), DateTime(1991, 8, 13)); 24 final DateTime time = DateTime(1991, 7, 31); 26 // formatDateTime() adds a timezone offset to DateTime.toString(). 28 // If a date time string has a timezone offset, DateTime.tryParse() 30 final DateTime parsedTime = DateTime.tryParse(formattedTime);
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 43 DateTime utcMin = DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc); in FromAndToDateTime() 44 DateTime utcMax = DateTime.SpecifyKind(DateTime.MaxValue, DateTimeKind.Utc); 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() 58 …Assert.AreEqual(new DateTime(1970, 1, 1, 0, 0, 1, DateTimeKind.Utc).AddMilliseconds(1), t1.ToDateT… in ToDateTimeTruncation() 61 … Assert.AreEqual(new DateTime(1969, 12, 31, 23, 59, 59).AddMilliseconds(1), t2.ToDateTime()); in ToDateTimeTruncation() 87 private static void AssertRoundtrip(Timestamp timestamp, DateTime dateTime) in AssertRoundtrip()
|
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/material/ |
D | date_and_time_picker_demo.dart | 63 final DateTime selectedDate; 65 final ValueChanged<DateTime> selectDate; 69 final DateTime picked = await showDatePicker( 72 firstDate: DateTime(2015, 8), 73 lastDate: DateTime(2101), 125 DateTime _fromDate = DateTime.now(); 127 DateTime _toDate = DateTime.now(); 164 selectDate: (DateTime date) { 179 selectDate: (DateTime date) {
|
D | full_screen_dialog_demo.dart | 20 DateTimeItem({ Key key, DateTime dateTime, @required this.onChanged }) 22 date = DateTime(dateTime.year, dateTime.month, dateTime.day), 26 final DateTime date; 28 final ValueChanged<DateTime> onChanged; 52 .then<void>((DateTime value) { 54 … onChanged(DateTime(value.year, value.month, value.day, time.hour, time.minute)); 81 onChanged(DateTime(date.year, date.month, date.day, value.hour, value.minute)); 104 DateTime _fromDateTime = DateTime.now(); 105 DateTime _toDateTime = DateTime.now(); 210 onChanged: (DateTime value) { [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/material/ |
D | date_picker.dart | 67 final DateTime selectedDate; 196 const int columnCount = DateTime.daysPerWeek; 256 final DateTime selectedDate; 259 final DateTime currentDate; 262 final ValueChanged<DateTime> onChanged; 265 final DateTime firstDate; 268 final DateTime lastDate; 271 final DateTime displayedMonth; 334 if (month == DateTime.february) { 369 /// - [DateTime.weekday] provides a 1-based index into days of week, with 1 [all …]
|
D | material_localizations.dart | 213 String formatYear(DateTime date); 224 String formatMediumDate(DateTime date); 235 String formatFullDate(DateTime date); 241 String formatMonthYear(DateTime date); 366 // Ordered to match DateTime.monday=1, DateTime.sunday=6 377 // Ordered to match DateTime.monday=1, DateTime.sunday=6 459 String formatYear(DateTime date) => date.year.toString(); 462 String formatMediumDate(DateTime date) { 463 final String day = _shortWeekdays[date.weekday - DateTime.monday]; 464 final String month = _shortMonths[date.month - DateTime.january]; [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/lib/src/base/ |
D | time.dart | 16 const factory SystemClock.fixed(DateTime time) = _FixedTimeClock; 19 DateTime now() => DateTime.now(); 22 DateTime ago(Duration duration) { 30 final DateTime _fixedTime; 33 DateTime now() => _fixedTime; 38 String formatDateTime(DateTime t) {
|
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/cupertino/ |
D | cupertino_picker_demo.dart | 26 DateTime date = DateTime.now(); 29 DateTime time = DateTime.now(); 32 DateTime dateTime = DateTime.now(); 162 onDateTimeChanged: (DateTime newDateTime) { 192 onDateTimeChanged: (DateTime newDateTime) { 222 onDateTimeChanged: (DateTime newDateTime) {
|
/third_party/rust/crates/humantime/benches/ |
D | datetime_parse.rs | 4 use chrono::{DateTime}; 17 DateTime::parse_from_rfc3339("2018-02-13T23:08:32Z").unwrap() in datetime_utc_parse_seconds() 31 DateTime::parse_from_rfc3339("2018-02-13T23:08:32.123Z").unwrap() in datetime_utc_parse_millis() 45 DateTime::parse_from_rfc3339("2018-02-13T23:08:32.123456983Z").unwrap() in datetime_utc_parse_nanos()
|
/third_party/flutter/flutter/packages/flutter_localizations/test/material/ |
D | date_picker_test.dart | 12 DateTime firstDate; 13 DateTime lastDate; 14 DateTime initialDate; 17 firstDate = DateTime(2001, DateTime.january, 1); 18 lastDate = DateTime(2031, DateTime.december, 31); 19 initialDate = DateTime(2016, DateTime.january, 15); 60 final DateTime baseDate = DateTime(2017, 9, 27); 65 onChanged: (DateTime newValue) { },
|
/third_party/flutter/flutter/dev/devicelab/test/ |
D | running_processes_test.dart | 28 DateTime(2019, 7, 3, 17, 0, 27), 33 DateTime(2019, 7, 3, 22, 0, 27), 38 DateTime(2019, 7, 3, 11, 0, 27), 58 DateTime(2019, 3, 9, 20, 12, 47), 63 DateTime(2019, 3, 9, 20, 13, 00),
|
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/time/ |
D | datetime.rs | 213 pub(crate) struct DateTime { struct 223 impl fmt::Display for DateTime { argument 246 impl From<std::time::SystemTime> for DateTime { implementation 247 fn from(timestamp: std::time::SystemTime) -> DateTime { in from() argument 321 DateTime { in from() 350 format!("{}", DateTime::from(timestamp)), in test_datetime()
|
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | TimestampPartial.cs | 41 … private static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); 114 public DateTime ToDateTime() in ToDateTime() 146 public static Timestamp FromDateTime(DateTime dateTime) in FromDateTime() 204 DateTime dateTime = UnixEpoch.AddSeconds(seconds); in ToJson()
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | alarm_clock_test.dart | 30 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 66 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 91 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 102 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 127 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 148 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24)); 168 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24));
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | time.h | 41 struct DateTime { struct 54 bool PROTOBUF_EXPORT SecondsToDateTime(int64 seconds, DateTime* time); 57 bool PROTOBUF_EXPORT DateTimeToSeconds(const DateTime& time, int64* seconds);
|
D | time.cc | 73 bool ValidateDateTime(const DateTime& time) { in ValidateDateTime() 91 int64 SecondsSinceCommonEra(const DateTime& time) { in SecondsSinceCommonEra() 211 bool SecondsToDateTime(int64 seconds, DateTime* time) { in SecondsToDateTime() 256 bool DateTimeToSeconds(const DateTime& time, int64* seconds) { in DateTimeToSeconds() 272 DateTime time; in FormatTime() 286 DateTime time; in ParseTime()
|
D | time_test.cc | 44 DateTime time; in CreateTimestamp() 60 DateTime time; in TEST() 82 DateTime start, end; in TEST() 154 DateTime time; in TEST() 206 DateTime start, end; in TEST()
|
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/ |
D | alarm_clock.dart | 8 typedef TimestampFunction = DateTime Function(); 29 DateTime _datetime; 41 DateTime get datetime => _datetime; 42 set datetime(DateTime value) { 53 final DateTime now = _timestampFunction(); 99 final DateTime now = _timestampFunction();
|
/third_party/flutter/flutter/packages/flutter_tools/lib/src/ |
D | version.dart | 292 final DateTime localFrameworkCommitDate = DateTime.parse(frameworkCommitDate); 299 final DateTime latestFlutterCommitDate = await _getLatestAvailableFlutterDate(); 309 …final DateTime lastTimeWarningWasPrinted = stamp.lastTimeWarningWasPrinted ?? _clock.ago(maxTimeSi… 367 Future<DateTime> _getLatestAvailableFlutterDate() async { 381 …final DateTime remoteFrameworkCommitDate = DateTime.parse(await FlutterVersion.fetchRemoteFramewor… 411 final DateTime lastTimeVersionWasChecked; 412 final DateTime lastKnownRemoteVersion; 413 final DateTime lastTimeWarningWasPrinted; 442 DateTime readDateTime(String property) { 444 ? DateTime.parse(jsonObject[property]) [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/integration.shard/ |
D | expression_evaluation_test.dart | 153 final InstanceRef res = await flutter.evaluateInFrame('new DateTime.now().year'); 154 …expect(res.kind == InstanceKind.kInt && res.valueAsString == DateTime.now().year.toString(), isTru… 158 final DateTime now = DateTime.now(); 159 final InstanceRef resp = await flutter.evaluateInFrame('new DateTime.now()'); 160 expect(resp.classRef.name, equals('DateTime'));
|
/third_party/flutter/skia/src/core/ |
D | SkTime.cpp | 17 void SkTime::DateTime::toISO8601(SkString* dst) const { in toISO8601() 34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() 52 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime()
|
/third_party/skia/src/core/ |
D | SkTime.cpp | 17 void SkTime::DateTime::toISO8601(SkString* dst) const { in toISO8601() 34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() 52 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime()
|