feat(matchmake): a bunch of things

This commit is contained in:
DJMrTV 2025-02-12 18:46:29 +01:00
commit 7d24a71f09
13 changed files with 220 additions and 30 deletions

View file

@ -66,7 +66,7 @@ impl KerberosDateTime{
#[inline]
pub fn get_month(&self) -> u8{
((self.0 >> 22) & 0b111111) as u8
((self.0 >> 22) & 0b1111) as u8
}
#[inline]
@ -154,3 +154,17 @@ impl Ticket{
data.into_boxed_slice()
}
}
#[cfg(test)]
mod test{
use chrono::{Datelike, Utc};
use crate::kerberos::KerberosDateTime;
#[test]
fn kerberos_time_convert_test(){
let time = KerberosDateTime(135904948834);
println!("{}", time.to_regular_time().to_rfc2822());
}
}