Skip to content

Commit 0a98f28

Browse files
author
ajibukunoluwa
committed
Improved documentation with better examples
1 parent 640bfc7 commit 0a98f28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ use Ajimoti\CacheDuration\Duration;
116116
$cacheDuration = Duration::days(22); // returns 22 days in seconds (22 * 24 * 60 * 60)
117117

118118
// or dynamically
119-
$cacheDuration = Duration::twentyTwoHours(); // returns 22 days in seconds (22 * 24 * 60 * 60)
119+
$cacheDuration = Duration::twentyTwoDays(); // returns 22 days in seconds (22 * 24 * 60 * 60)
120120
```
121121

122122
### `at($value)`
123123
This method allows you to convert a `Carbon\Carbon` instance, `DateTime` instance or `string` of date into seconds.
124124

125-
The method returns the difference in seconds between the argument passed and the current `timestamp`.
125+
It returns the difference in seconds between the argument passed and the current `timestamp`.
126126

127127
> The date passed into this method **MUST** be a date in the future. When a string is passed, the text **MUST** be compatible with `Carbon::parse()` method, else an exception will be thrown
128128

0 commit comments

Comments
 (0)