Lines Matching refs:DateTime
111 CreationDate(DateTime) with accessor creation_date,
113 AttestationExpirationDate(DateTime) with accessor attestation_expiration_date,
359 pub struct DateTime(i64); struct
378 impl DateTime { impl
401 impl ToSql for DateTime { implementation
407 impl FromSql for DateTime { implementation
413 impl TryInto<SystemTime> for DateTime { implementation
443 impl TryFrom<SystemTime> for DateTime { implementation
1761 metadata.add(KeyMetaEntry::AttestationExpirationDate(DateTime::from_millis_epoch( in store_signed_attestation_certificate_chain()
1910 .collect::<rusqlite::Result<Vec<(i64, DateTime)>>>() in delete_expired_attestation_keys()
1912 let curr_time = DateTime::from_millis_epoch( in delete_expired_attestation_keys()
1986 .collect::<rusqlite::Result<Vec<DateTime>>>() in get_attestation_pool_status()
1989 times.iter().filter(|time| time < &&DateTime::from_millis_epoch(date)).count() in get_attestation_pool_status()
2327 DateTime::now().context("Trying to make creation time.")?, in store_new_certificate()
3288 params![DateTime::try_from(now)?, DateTime::try_from(then)?, DateTime::try_from(soon)?], in datetime()
3292 assert_eq!(DateTime::try_from(then)?, rows.next()?.unwrap().get(0)?); in datetime()
3293 assert_eq!(DateTime::try_from(now)?, rows.next()?.unwrap().get(0)?); in datetime()
3294 assert_eq!(DateTime::try_from(soon)?, rows.next()?.unwrap().get(0)?); in datetime()
3296 assert!(DateTime::try_from(then)? < DateTime::try_from(now)?); in datetime()
3297 assert!(DateTime::try_from(then)? < DateTime::try_from(soon)?); in datetime()
3298 assert!(DateTime::try_from(now)? < DateTime::try_from(soon)?); in datetime()
5269 metadata.add(KeyMetaEntry::CreationDate(DateTime::from_millis_epoch(123456789))); in make_test_key_entry()
5286 metadata.add(KeyMetaEntry::CreationDate(DateTime::from_millis_epoch(123456789))); in make_test_key_entry_test_vector()
5329 metadata.add(KeyMetaEntry::CreationDate(DateTime::from_millis_epoch(123456789))); in make_bootlevel_key_entry()
5346 metadata.add(KeyMetaEntry::CreationDate(DateTime::from_millis_epoch(123456789))); in make_bootlevel_test_key_entry_test_vector()
5632 metadata.add(KeyMetaEntry::CreationDate(DateTime::from_millis_epoch(123456789))); in test_verify_key_table_size_reporting()