caveman/cave/src/lib.rs

19 lines
424 B
Rust
Raw Normal View History

2022-11-05 20:51:18 +01:00
pub mod init;
pub mod systemd;
pub mod config;
pub mod feed;
pub mod store;
2022-11-08 00:43:46 +01:00
pub mod trend_tag;
2022-11-16 19:12:25 +01:00
pub mod firehose;
pub mod live_file;
pub mod word_list;
pub const PERIODS: &[u64] = &[4, 24, 7 * 24];
/// compare the selected period against how many multiples of preceding periods
pub const PERIOD_COMPARE_WINDOW: u64 = 3;
pub fn current_hour() -> u64 {
chrono::offset::Utc::now().naive_utc().timestamp() as u64 / 3600
}