You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,13 +116,13 @@ use Ajimoti\CacheDuration\Duration;
116
116
$cacheDuration = Duration::days(22); // returns 22 days in seconds (22 * 24 * 60 * 60)
117
117
118
118
// 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)
120
120
```
121
121
122
122
### `at($value)`
123
123
This method allows you to convert a `Carbon\Carbon` instance, `DateTime` instance or `string` of date into seconds.
124
124
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`.
126
126
127
127
> 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
0 commit comments