|
|
|
@ -105,7 +105,7 @@ impl DateTime { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -284,7 +284,7 @@ impl Time { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -436,7 +436,7 @@ impl Date { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -577,7 +577,7 @@ impl GYearMonth { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -672,7 +672,7 @@ impl GYear { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -776,7 +776,7 @@ impl GMonthDay { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -867,7 +867,7 @@ impl GMonth { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -970,7 +970,7 @@ impl GDay { |
|
|
|
|
self.timestamp.timezone_offset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
pub fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
self.timestamp.to_be_bytes() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1327,7 +1327,7 @@ impl Timestamp { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fn to_be_bytes(&self) -> [u8; 18] { |
|
|
|
|
fn to_be_bytes(self) -> [u8; 18] { |
|
|
|
|
let mut bytes = [0; 18]; |
|
|
|
|
bytes[0..16].copy_from_slice(&self.value.to_be_bytes()); |
|
|
|
|
bytes[16..18].copy_from_slice(&match &self.timezone_offset { |
|
|
|
|