#![deny(missing_docs)]
#![allow(
unused_variables,
unreachable_code,
clippy::unreachable,
unused_mut,
clippy::needless_pass_by_value,
clippy::too_many_arguments,
clippy::return_self_not_must_use
)]
use rhai::EvalAltResult;
#[derive(Debug, Clone, Copy)]
pub struct DateTime;
#[derive(Debug, Clone, Copy)]
pub struct DateTimeFormat;
impl DateTime {
#[allow(non_snake_case)]
pub fn new(
year: i64,
month: u64,
day: u64,
hour: u64,
minute: u64,
second: u64,
nanosecond: i64,
) -> Self {
unreachable!("This method exists only for documentation.")
}
pub fn from_epoch_seconds(
&mut self,
epoch_seconds: i64,
) -> Result<DateTime, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn from_epoch_nanos(
&mut self,
seconds_portion: i64,
nanos_portion: i64,
) -> Result<DateTime, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn now(&mut self) -> Result<DateTime, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn now_nanos(&mut self) -> DateTime {
unreachable!("This method exists only for documentation.")
}
pub fn parse(
&mut self,
s: &str,
format: DateTimeFormat,
) -> Result<DateTime, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn epoch_seconds(&mut self) -> Result<i64, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn nanos(&mut self) -> i64 {
unreachable!("This method exists only for documentation.")
}
pub fn to_string(&mut self, format: DateTimeFormat) -> Result<String, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn month_str(&mut self) -> Result<String, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
pub fn month_str_short(&mut self) -> Result<String, Box<EvalAltResult>> {
unreachable!("This method exists only for documentation.")
}
}