e_window 0.1.15

A window tool. Think WinAPI ShowMessageBox; but more than that.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() {
    // Get current date and time in a reliable way
    let now = std::time::SystemTime::now()
        .duration_since(std::time::UNIX_EPOCH)
        .unwrap()
        .as_secs();
    
    // Convert to a readable format
    let datetime = chrono::DateTime::from_timestamp(now as i64, 0)
        .unwrap_or_else(|| chrono::Utc::now())
        .format("%Y-%m-%d %H:%M:%S UTC");
    
    println!("cargo:rustc-env=BUILD_TIMESTAMP={}", datetime);
    
    // Rerun if this build script changes
    println!("cargo:rerun-if-changed=build.rs");
}