Struct vega_lite_4::DateTimeBuilder
source · pub struct DateTimeBuilder { /* private fields */ }
Expand description
Builder for DateTime
.
Implementations§
source§impl DateTimeBuilder
impl DateTimeBuilder
sourcepub fn date<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the date (day of the month) from 1-31.
sourcepub fn day<VALUE: Into<Day>>(&mut self, value: VALUE) -> &mut Self
pub fn day<VALUE: Into<Day>>(&mut self, value: VALUE) -> &mut Self
Value representing the day of a week. This can be one of: (1) integer value – 1
represents Monday; (2) case-insensitive day name (e.g., "Monday"
); (3)
case-insensitive, 3-character short day name (e.g., "Mon"
).
Warning: A DateTime definition object with day
** should not be combined with
year
, quarter
, month
, or date
.
sourcepub fn hours<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn hours<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the hour of a day from 0-23.
sourcepub fn milliseconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn milliseconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the millisecond segment of time.
sourcepub fn minutes<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn minutes<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the minute segment of time from 0-59.
sourcepub fn month<VALUE: Into<Month>>(&mut self, value: VALUE) -> &mut Self
pub fn month<VALUE: Into<Month>>(&mut self, value: VALUE) -> &mut Self
One of: (1) integer value representing the month from 1
-12
. 1
represents January;
(2) case-insensitive month name (e.g., "January"
); (3) case-insensitive, 3-character
short month name (e.g., "Jan"
).
sourcepub fn quarter<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn quarter<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the quarter of the year (from 1-4).
sourcepub fn seconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn seconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the second segment (0-59) of a time value
sourcepub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
A boolean flag indicating if date time is in utc time. If false, the date time is in local time
Trait Implementations§
source§impl Clone for DateTimeBuilder
impl Clone for DateTimeBuilder
source§fn clone(&self) -> DateTimeBuilder
fn clone(&self) -> DateTimeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more