mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-14 16:05:02 -05:00
Add initial set of utility plugins for the template system: - datetime: Date/time formatting and manipulation - fetch: HTTP content retrieval and processing - file: File system operations and content handling - sys: System information and environment access - text: String manipulation and formatting operations Each plugin includes: - Implementation with comprehensive test coverage - Markdown documentation of capabilities - Integration with template package This builds on the template system to provide practical utility functions while maintaining a focused scope for the initial plugin release.
41 lines
931 B
Markdown
41 lines
931 B
Markdown
# DateTime Plugin Tests
|
|
|
|
Simple test file for validating datetime plugin functionality.
|
|
|
|
## Basic Time Operations
|
|
|
|
```
|
|
Current Time: {{plugin:datetime:now}}
|
|
Time Only: {{plugin:datetime:time}}
|
|
Unix Timestamp: {{plugin:datetime:unix}}
|
|
Hour Start: {{plugin:datetime:startofhour}}
|
|
Hour End: {{plugin:datetime:endofhour}}
|
|
```
|
|
|
|
## Date Operations
|
|
|
|
```
|
|
Today: {{plugin:datetime:today}}
|
|
Full Date: {{plugin:datetime:full}}
|
|
Current Month: {{plugin:datetime:month}}
|
|
Current Year: {{plugin:datetime:year}}
|
|
```
|
|
|
|
## Period Operations
|
|
|
|
```
|
|
Week Start: {{plugin:datetime:startofweek}}
|
|
Week End: {{plugin:datetime:endofweek}}
|
|
Month Start: {{plugin:datetime:startofmonth}}
|
|
Month End: {{plugin:datetime:endofmonth}}
|
|
```
|
|
|
|
## Relative Time/Date
|
|
|
|
```
|
|
2 Hours Ahead: {{plugin:datetime:rel:2h}}
|
|
1 Day Ago: {{plugin:datetime:rel:-1d}}
|
|
Next Week: {{plugin:datetime:rel:1w}}
|
|
Last Month: {{plugin:datetime:rel:-1m}}
|
|
Next Year: {{plugin:datetime:rel:1y}}
|
|
``` |