/external/rust/crates/chrono/src/ |
D | round.rs | 277 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_684); in test_round_subsecs() localVariable 279 assert_eq!(dt.round_subsecs(10), dt); in test_round_subsecs() 280 assert_eq!(dt.round_subsecs(9), dt); in test_round_subsecs() 281 assert_eq!(dt.round_subsecs(8).nanosecond(), 084_660_680); in test_round_subsecs() 282 assert_eq!(dt.round_subsecs(7).nanosecond(), 084_660_700); in test_round_subsecs() 283 assert_eq!(dt.round_subsecs(6).nanosecond(), 084_661_000); in test_round_subsecs() 284 assert_eq!(dt.round_subsecs(5).nanosecond(), 084_660_000); in test_round_subsecs() 285 assert_eq!(dt.round_subsecs(4).nanosecond(), 084_700_000); in test_round_subsecs() 286 assert_eq!(dt.round_subsecs(3).nanosecond(), 085_000_000); in test_round_subsecs() 287 assert_eq!(dt.round_subsecs(2).nanosecond(), 080_000_000); in test_round_subsecs() [all …]
|
/external/python/dateutil/dateutil/tz/ |
D | _common.py | 37 def enfold(dt, fold=1): argument 55 return dt.replace(fold=fold) 102 def enfold(dt, fold=1): argument 120 if getattr(dt, 'fold', 0) == fold: 121 return dt 123 args = dt.timetuple()[:6] 124 args += (dt.microsecond, dt.tzinfo) 138 def fromutc(self, dt): argument 139 if not isinstance(dt, datetime): 141 if dt.tzinfo is not self: [all …]
|
D | tz.py | 74 def utcoffset(self, dt): argument 77 def dst(self, dt): argument 81 def tzname(self, dt): argument 84 def is_ambiguous(self, dt): argument 101 def fromutc(self, dt): argument 106 return dt 148 def utcoffset(self, dt): argument 151 def dst(self, dt): argument 155 def tzname(self, dt): argument 159 def fromutc(self, dt): argument [all …]
|
/external/python/cpython2/Doc/includes/ |
D | tzinfo-examples.py | 11 def utcoffset(self, dt): argument 14 def tzname(self, dt): argument 17 def dst(self, dt): argument 33 def utcoffset(self, dt): argument 36 def tzname(self, dt): argument 39 def dst(self, dt): argument 56 def utcoffset(self, dt): argument 57 if self._isdst(dt): 62 def dst(self, dt): argument 63 if self._isdst(dt): [all …]
|
/external/python/cpython3/Doc/includes/ |
D | tzinfo_examples.py | 23 def fromutc(self, dt): argument 24 assert dt.tzinfo is self 25 stamp = (dt - datetime(1970, 1, 1, tzinfo=self)) // SECOND 30 return datetime(*args, microsecond=dt.microsecond, 33 def utcoffset(self, dt): argument 34 if self._isdst(dt): 39 def dst(self, dt): argument 40 if self._isdst(dt): 45 def tzname(self, dt): argument 46 return _time.tzname[self._isdst(dt)] [all …]
|
/external/rust/crates/chrono/src/format/ |
D | strftime.rs | 545 let dt = FixedOffset::east(34200).ymd(2001, 7, 8).and_hms_nano(0, 34, 59, 1_026_490_708); in test_strftime_docs() localVariable 548 assert_eq!(dt.format("%Y").to_string(), "2001"); in test_strftime_docs() 549 assert_eq!(dt.format("%C").to_string(), "20"); in test_strftime_docs() 550 assert_eq!(dt.format("%y").to_string(), "01"); in test_strftime_docs() 551 assert_eq!(dt.format("%m").to_string(), "07"); in test_strftime_docs() 552 assert_eq!(dt.format("%b").to_string(), "Jul"); in test_strftime_docs() 553 assert_eq!(dt.format("%B").to_string(), "July"); in test_strftime_docs() 554 assert_eq!(dt.format("%h").to_string(), "Jul"); in test_strftime_docs() 555 assert_eq!(dt.format("%d").to_string(), "08"); in test_strftime_docs() 556 assert_eq!(dt.format("%e").to_string(), " 8"); in test_strftime_docs() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | types.cc | 115 bool DataTypeFromString(StringPiece sp, DataType* dt) { in DataTypeFromString() argument 120 *dt = static_cast<DataType>(non_ref + kDataTypeRefOffset); in DataTypeFromString() 128 *dt = DT_FLOAT; in DataTypeFromString() 131 *dt = DT_DOUBLE; in DataTypeFromString() 134 *dt = DT_INT32; in DataTypeFromString() 137 *dt = DT_UINT32; in DataTypeFromString() 140 *dt = DT_UINT8; in DataTypeFromString() 143 *dt = DT_UINT16; in DataTypeFromString() 146 *dt = DT_INT16; in DataTypeFromString() 149 *dt = DT_INT8; in DataTypeFromString() [all …]
|
D | fake_input.cc | 34 void SetDataType(DataType dt); 41 Status GetDataType(DataType* dt) const; 42 void NSources(int n, DataType dt) const; 75 void FakeInputImpl::SetDataType(DataType dt) { in SetDataType() argument 77 dt_ = dt; in SetDataType() 93 DataType dt; in AddInputToBuilder() local 95 TF_RETURN_IF_ERROR(GetDataType(&dt)); in AddInputToBuilder() 97 dt = DT_FLOAT; in AddInputToBuilder() 100 NSources(n, dt); in AddInputToBuilder() 114 DataType dt; in AddInputToBuilder() local [all …]
|
D | types_test.cc | 86 DataType dt; in TEST() local 87 ASSERT_TRUE(DataTypeFromString("int32", &dt)); in TEST() 88 EXPECT_EQ(DT_INT32, dt); in TEST() 89 ASSERT_TRUE(DataTypeFromString("int32_ref", &dt)); in TEST() 90 EXPECT_EQ(DT_INT32_REF, dt); in TEST() 91 EXPECT_FALSE(DataTypeFromString("int32_ref_ref", &dt)); in TEST() 92 EXPECT_FALSE(DataTypeFromString("foo", &dt)); in TEST() 93 EXPECT_FALSE(DataTypeFromString("foo_ref", &dt)); in TEST() 94 ASSERT_TRUE(DataTypeFromString("int64", &dt)); in TEST() 95 EXPECT_EQ(DT_INT64, dt); in TEST() [all …]
|
/external/skia/src/core/ |
D | SkTime.cpp | 34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() argument 35 if (dt) { in GetDateTime() 38 dt->fTimeZoneMinutes = 0; in GetDateTime() 39 dt->fYear = st.wYear; in GetDateTime() 40 dt->fMonth = SkToU8(st.wMonth); in GetDateTime() 41 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime() 42 dt->fDay = SkToU8(st.wDay); in GetDateTime() 43 dt->fHour = SkToU8(st.wHour); in GetDateTime() 44 dt->fMinute = SkToU8(st.wMinute); in GetDateTime() 45 dt->fSecond = SkToU8(st.wSecond); in GetDateTime() [all …]
|
/external/skqp/src/core/ |
D | SkTime.cpp | 34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() argument 35 if (dt) { in GetDateTime() 38 dt->fTimeZoneMinutes = 0; in GetDateTime() 39 dt->fYear = st.wYear; in GetDateTime() 40 dt->fMonth = SkToU8(st.wMonth); in GetDateTime() 41 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime() 42 dt->fDay = SkToU8(st.wDay); in GetDateTime() 43 dt->fHour = SkToU8(st.wHour); in GetDateTime() 44 dt->fMinute = SkToU8(st.wMinute); in GetDateTime() 45 dt->fSecond = SkToU8(st.wSecond); in GetDateTime() [all …]
|
/external/vixl/src/aarch32/ |
D | assembler-aarch32.h | 262 typedef void (Assembler::*InstructionDtQQ)(DataType dt, 347 typedef void (Assembler::*InstructionDtQQQ)(DataType dt, 368 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm); 370 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm); 372 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm); 374 DataType dt, 378 DataType dt, 382 DataType dt, 386 Condition cond, DataType dt, SRegister rd, SRegister rn, SRegister rm); 388 Condition cond, DataType dt, DRegister rd, QRegister rn, QRegister rm); [all …]
|
D | disasm-aarch32.cc | 837 DecodeNeon Index_1_Decode(uint32_t value, DataType dt) { in Index_1_Decode() argument 838 switch (dt.GetValue()) { in Index_1_Decode() 863 DecodeNeonAndAlign Align_index_align_1_Decode(uint32_t value, DataType dt) { in Align_index_align_1_Decode() argument 864 switch (dt.GetValue()) { in Align_index_align_1_Decode() 908 DecodeNeonAndAlign Align_index_align_2_Decode(uint32_t value, DataType dt) { in Align_index_align_2_Decode() argument 909 switch (dt.GetValue()) { in Align_index_align_2_Decode() 955 DecodeNeonAndAlign Align_index_align_3_Decode(uint32_t value, DataType dt) { in Align_index_align_3_Decode() argument 956 switch (dt.GetValue()) { in Align_index_align_3_Decode() 1004 Alignment Align_a_1_Decode(uint32_t value, DataType dt) { in Align_a_1_Decode() argument 1009 if (dt.Is(Untyped16)) return k16BitAlign; in Align_a_1_Decode() [all …]
|
D | disasm-aarch32.h | 155 DtPrinter(DataType dt, DataType default_dt) in DtPrinter() argument 156 : dt_(dt), default_dt_(default_dt) {} in DtPrinter() 159 friend std::ostream& operator<<(std::ostream& os, DtPrinter dt) { 160 if (dt.dt_.Is(dt.default_dt_)) return os; 161 return os << dt.dt_; 307 virtual DisassemblerStream& operator<<(const DtPrinter& dt) { 308 os_ << dt; 1449 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm); 1452 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm); 1455 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm); [all …]
|
D | macro-assembler-aarch32.h | 707 void Vldr(Condition cond, DataType dt, DRegister rd, RawLiteral* literal) { in Vldr() argument 715 bool can_encode = vldr_info(cond, dt, rd, literal, &info); in Vldr() 723 vldr(cond, dt, rd, literal); in Vldr() 726 void Vldr(DataType dt, DRegister rd, RawLiteral* literal) { in Vldr() argument 727 Vldr(al, dt, rd, literal); in Vldr() 736 void Vldr(Condition cond, DataType dt, SRegister rd, RawLiteral* literal) { in Vldr() argument 744 bool can_encode = vldr_info(cond, dt, rd, literal, &info); in Vldr() 752 vldr(cond, dt, rd, literal); in Vldr() 755 void Vldr(DataType dt, SRegister rd, RawLiteral* literal) { in Vldr() argument 756 Vldr(al, dt, rd, literal); in Vldr() [all …]
|
D | assembler-aarch32.cc | 104 explicit Dt_L_imm6_1(DataType dt); 108 Dt_L_imm6_1::Dt_L_imm6_1(DataType dt) { in Dt_L_imm6_1() argument 109 switch (dt.GetValue()) { in Dt_L_imm6_1() 153 explicit Dt_L_imm6_2(DataType dt); 157 Dt_L_imm6_2::Dt_L_imm6_2(DataType dt) { in Dt_L_imm6_2() argument 158 switch (dt.GetValue()) { in Dt_L_imm6_2() 184 explicit Dt_L_imm6_3(DataType dt); 187 Dt_L_imm6_3::Dt_L_imm6_3(DataType dt) { in Dt_L_imm6_3() argument 188 switch (dt.GetValue()) { in Dt_L_imm6_3() 208 explicit Dt_L_imm6_4(DataType dt); [all …]
|
/external/tensorflow/tensorflow/python/ops/ragged/ |
D | ragged_from_tensor_op_test.py | 40 dt = constant_op.constant([[5, 7, 0], [0, 3, 0], [6, 0, 0]]) 42 RaggedTensor.from_tensor(dt), [[5, 7, 0], [0, 3, 0], [6, 0, 0]]) 45 RaggedTensor.from_tensor(dt, lengths=[1, 0, 3]), [[5], [], [6, 0, 0]]) 48 RaggedTensor.from_tensor(dt, padding=0), [[5, 7], [0, 3], [6]]) 359 dt = constant_op.constant(tensor) 361 rt = RaggedTensor.from_tensor(dt, lengths, padding, ragged_rank) 363 rt = RaggedTensor.from_tensor(dt, lengths, padding) 367 dt.shape.is_compatible_with(rt.shape), 368 '%s is incompatible with %s' % (dt.shape, rt.shape)) 378 dt = array_ops.reshape( [all …]
|
/external/blktrace/btt/ |
D | p_live.c | 27 __u64 dt, ct; member 64 static inline int inside(struct p_live *plp, __u64 dt, __u64 ct) in inside() argument 66 if (plp->dt <= dt && dt <= plp->ct) in inside() 68 if (plp->dt <= ct && ct <= plp->ct) in inside() 70 if (dt < plp->dt && plp->ct < ct) in inside() 75 static void __p_live_add(struct rb_root *root, __u64 dt, __u64 ct) in __p_live_add() argument 85 if (inside(plp, dt, ct)) { in __p_live_add() 88 __p_live_add(root, min(plp->dt, dt), max(plp->ct, ct)); in __p_live_add() 93 if (ct < plp->dt) in __p_live_add() 100 plp->dt = dt; in __p_live_add() [all …]
|
/external/rust/crates/zip/src/ |
D | types.rs | 328 let dt = DateTime::default(); in datetime_default() localVariable 329 assert_eq!(dt.timepart(), 0); in datetime_default() 330 assert_eq!(dt.datepart(), 0b0000000_0001_00001); in datetime_default() 336 let dt = DateTime::from_date_and_time(2107, 12, 31, 23, 59, 60).unwrap(); in datetime_max() localVariable 337 assert_eq!(dt.timepart(), 0b10111_111011_11110); in datetime_max() 338 assert_eq!(dt.datepart(), 0b1111111_1100_11111); in datetime_max() 417 let dt = DateTime::from_msdos(0x4D71, 0x54CF); in time_conversion() localVariable 418 assert_eq!(dt.year(), 2018); in time_conversion() 419 assert_eq!(dt.month(), 11); in time_conversion() 420 assert_eq!(dt.day(), 17); in time_conversion() [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | mod.rs | 336 Some(dt) => LocalResult::Single(self.from_utc_datetime(&dt)), in timestamp_opt() 480 let dt = Utc.timestamp_millis(-1000); in test_negative_millis() localVariable 481 assert_eq!(dt.to_string(), "1969-12-31 23:59:59 UTC"); in test_negative_millis() 482 let dt = Utc.timestamp_millis(-7000); in test_negative_millis() localVariable 483 assert_eq!(dt.to_string(), "1969-12-31 23:59:53 UTC"); in test_negative_millis() 484 let dt = Utc.timestamp_millis(-7001); in test_negative_millis() localVariable 485 assert_eq!(dt.to_string(), "1969-12-31 23:59:52.999 UTC"); in test_negative_millis() 486 let dt = Utc.timestamp_millis(-7003); in test_negative_millis() localVariable 487 assert_eq!(dt.to_string(), "1969-12-31 23:59:52.997 UTC"); in test_negative_millis() 488 let dt = Utc.timestamp_millis(-999); in test_negative_millis() localVariable [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | random_ops_test.py | 82 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 83 sampler = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True) 98 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 102 1000000, 0.0, 1.0, dt, use_gpu=use_gpu, seed=12345) 104 if dt == dtypes.float16: 111 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 112 sx = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True, seed=345) 113 sy = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True, seed=345) 129 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 131 random_ops.random_normal, 100, dt, 0.0, 1.0, use_gpu=use_gpu) [all …]
|
/external/python/dateutil/dateutil/test/ |
D | test_isoparser.py | 50 def test_year_only(dt): argument 51 dtstr = dt.strftime('%Y') 53 assert isoparse(dtstr) == dt 57 def test_year_month(dt): argument 59 dtstr = dt.strftime(fmt) 61 assert isoparse(dtstr) == dt 67 def test_year_month_day(dt, fmt): argument 68 dtstr = dt.strftime(fmt) 70 assert isoparse(dtstr) == dt 72 def _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset, argument [all …]
|
/external/python/cpython3/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 97 def from_datetime(cls, dt): argument 99 dt.year, 100 dt.month, 101 dt.day, 102 dt.hour, 103 dt.minute, 104 dt.second, 105 dt.microsecond, 106 tzinfo=dt.tzinfo, 107 fold=dt.fold, [all …]
|
/external/dng_sdk/source/ |
D | dng_date_time.h | 82 bool operator== (const dng_date_time &dt) const 84 return fYear == dt.fYear && 85 fMonth == dt.fMonth && 86 fDay == dt.fDay && 87 fHour == dt.fHour && 88 fMinute == dt.fMinute && 89 fSecond == dt.fSecond; 94 bool operator!= (const dng_date_time &dt) const 96 return !(*this == dt); 242 void SetDateTime (const dng_date_time &dt) in SetDateTime() argument [all …]
|
/external/toybox/toys/posix/ |
D | ls.c | 133 static void entrylen(struct dirtree *dt, unsigned *len) in entrylen() argument 135 struct stat *st = &(dt->st); in entrylen() 138 *len = strwidth(dt->name); in entrylen() 155 len[7] = FLAG(Z) ? strwidth((char *)dt->extra) : 0; in entrylen() 262 struct dirtree *dt, **sort; in listfiles() local 281 dt = indir->child; in listfiles() 282 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(FLAG(d)||FLAG(R))) { in listfiles() 283 listfiles(open(dt->name, 0), TT.singledir = dt); in listfiles() 289 for (;dt; dt = dt->next) filter(dt); in listfiles() 300 for (dtlen = 0, dt = indir->child; dt; dt = dt->next, dtlen++) in listfiles() [all …]
|