✨ Add ISO 8601 date and time handling
This commit is contained in:
parent
9eec6f88e2
commit
689a22e51a
4 changed files with 11 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ sqlite = ["database", "sea-orm/sqlx-sqlite"]
|
|||
|
||||
[dependencies]
|
||||
async-trait = "0.1.68"
|
||||
chrono = "0.4.26"
|
||||
concat-string = "1.0.1"
|
||||
figlet-rs = "0.1.5"
|
||||
itoa = "1.0.6"
|
||||
|
|
|
|||
4
pagetop/src/datetime.rs
Normal file
4
pagetop/src/datetime.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
//! PageTop uses the [Chrono](https://docs.rs/chrono) Rust library to add
|
||||
//! [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time related data.
|
||||
|
||||
pub use chrono::prelude::*;
|
||||
|
|
@ -22,6 +22,8 @@
|
|||
//!
|
||||
//! * HTML en código ([`html`]).
|
||||
//!
|
||||
//! * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time handling ([`datetime`]).
|
||||
//!
|
||||
//! * Acceso unificado y normalizado a base de datos ([`db`]).
|
||||
//!
|
||||
//! * Tipos y funciones esenciales para crear acciones, componentes, módulos y temas ([`core`]).
|
||||
|
|
@ -135,6 +137,8 @@ pub mod trace;
|
|||
pub mod locale;
|
||||
// HTML en código.
|
||||
pub mod html;
|
||||
// Date and time for PageTop.
|
||||
pub mod datetime;
|
||||
|
||||
// Acceso a base de datos.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "database")))]
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ pub use crate::locale::*;
|
|||
|
||||
pub use crate::html::*;
|
||||
|
||||
pub use crate::datetime::*;
|
||||
|
||||
#[cfg(feature = "database")]
|
||||
pub use crate::{db, db::*, migration_item, pub_migration};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue