From /home/chedong/.local/share/rdoc
DateAndTime — Module for date and time operations (source location: /home/chedong/.local/share/rdoc)
| Use Case | Command | Description |
|---|---|---|
| Get current date & time | Time.now | Returns the current system time |
| Parse a date string | Date.parse("2025-01-01") | Convert a string to a Date object |
| Format a date/time | Time.now.strftime("%Y-%m-%d") | Format datetime into a readable string |
| Calculate difference | (date1 - date2).to_i | Get days between two dates |
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 15:24 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format