mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Dynamic sized strips, tables, and date picker (#963)
This commit is contained in:
@@ -100,7 +100,7 @@ fn test_egui_zero_window_size() {
|
||||
|
||||
/// Time of day as seconds since midnight. Used for clock in demo app.
|
||||
pub(crate) fn seconds_since_midnight() -> Option<f64> {
|
||||
#[cfg(feature = "chrono")]
|
||||
#[cfg(feature = "datetime")]
|
||||
{
|
||||
use chrono::Timelike;
|
||||
let time = chrono::Local::now().time();
|
||||
@@ -108,6 +108,6 @@ pub(crate) fn seconds_since_midnight() -> Option<f64> {
|
||||
time.num_seconds_from_midnight() as f64 + 1e-9 * (time.nanosecond() as f64);
|
||||
Some(seconds_since_midnight)
|
||||
}
|
||||
#[cfg(not(feature = "chrono"))]
|
||||
#[cfg(not(feature = "datetime"))]
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user