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
@@ -238,43 +242,55 @@ public static function fromTimestamp(Timestamp $timestamp, ?Timezone $timezone =
238
242
}
239
243
240
244
/**
241
-
* Parses a date and time string into an instance of {@see DateTime}. This method accepts the same parameters as the {@see \DateTime} constructor.
245
+
* Parses the given value into an instance of {@see Tempest\DateTime\DateTime}. The value may be an integer, second-based timestamp, a native datetime string, a native {@see \DateTimeInterface}, or a {@see Tempest\DateTime\DateTime}.
242
246
*
243
-
* The {@see fromPattern} or {@see fromString} methods are recommended instead if you already know the format of the date string to parse.
247
+
* The {@see fromPattern} methods is recommended instead if you already know the format of the date string to parse.
* Parses a date and time string into an instance of {@see DateTime} using a specific format pattern, with optional customization for timezone and locale.
273
-
*
274
-
* This method is specifically designed for cases where a custom format pattern is used to parse the input string.
290
+
* Parses a date and time string into an instance of {@see Tempest\DateTime\DateTime} using a specific format pattern, with optional customization for timezone and locale.
275
291
*
292
+
* This method is specifically designed for cases where a custom format pattern is used to parse the input string.
276
293
* It allows for precise control over the parsing process by specifying the exact format pattern that matches the input string.
277
-
*
278
294
* Additionally, the method supports specifying a timezone and locale for parsing, enabling accurate interpretation of locale-specific formats.
279
295
*
280
296
* Example usage:
@@ -304,13 +320,10 @@ public static function fromPattern(string $string, FormatPattern|string $pattern
304
320
}
305
321
306
322
/**
307
-
* Creates an instance of {@see DateTime} from a date and time string, formatted according to specified styles for date and time,
308
-
* with optional customization for timezone and locale.
309
-
*
310
-
* This method provides a more abstracted approach to parsing, allowing users to specify styles rather than a custom pattern.
323
+
* Creates an instance of {@see Tempest\DateTime\DateTime} from a date and time string, formatted according to specified styles for date and time, with optional customization for timezone and locale.
311
324
*
325
+
* This method provides a more abstracted approach to parsing, allowing users to specify styles rather than a custom pattern.
312
326
* This is particularly useful for parsing strings that follow common date and time formats.
313
-
*
314
327
* Additionally, the timezone and locale parameters enable accurate parsing of strings in locale-specific formats.
0 commit comments