Skip to content

Replace Chrono #97

Description

@extua

This could be replaced in the following places:

  1. In datapackage.rs, the DataPackage struct has a 'created' field, which should be "a RFC3339 datetime for when the WACZ file was created".

created: Local::now().to_rfc3339(),

To replace this: write a function to turn system time into an RFC3399 string.

  1. In the indexer.

let timestamp = DateTime::parse_from_rfc3339(&record.timestamp).unwrap();

To replace this: write a function to parse an RFC3399 string and write out a CDXJ formatted one.

This is kind of playing code golf, an unnecessary optimisation; but it's a fun project. Doing this would reduce binary size (by how much?) and reduce dependencies (for easier packaging).

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency filerefactorRewrite code without adding functionality

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions