A comprehensive datetime package for the FASTN language that provides utilities for date and time manipulation, formatting, and parsing.
This package offers datetime functionality for FASTN applications. Visit datetime-v0.fifthtry.site for detailed documentation and examples. The datetime.fifthtry.site folder is the source code for the datetime package and the datetime-example.fifthtry.site is an example site that utilizes the datetime package.
- Get current date time
- format datetime to required format
Add the following to your FASTN.ftd file:
-- fastn.dependency: datetime-v0.fifthtry.site
Here's a simple example of how to use the datetime package:
-- datetime current: $now()
-- string format-string: $fmt(dt = $current, ft = "datetime")
-- ftd.text: $format-string
For complete documentation, examples, and API reference, visit our documentation site.
Contributions are welcome! Please feel free to submit a Pull Request.
AGPL-3
If you encounter any issues or have questions, please file an issue on the GitHub repository.