Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Date.fromString to Date.parse #3068

Closed
DartBot opened this issue May 15, 2012 · 4 comments
Closed

Rename Date.fromString to Date.parse #3068

DartBot opened this issue May 15, 2012 · 4 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented May 15, 2012

This issue was originally filed by @seaneagan


'parse' is at least as clear as 'fromString' yet shorter.

should be considered in the context of issue #2868 and issue #2870.

@sethladd
Copy link
Contributor

cc @floitschG.
Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Triaged labels.

@DartBot
Copy link
Author

DartBot commented May 22, 2012

This comment was originally written by @seaneagan


Actually, if this constructor is going to continue only taking ISO-8601 Strings, then Date.fromIso or Date.fromIso8601 might be better names.

@floitschG
Copy link
Contributor

I really want to keep the constructor simple (and well specified) and defer more complicated parsing to an i80n library.
Potentially we could add support for rfc2822's Date format (http://tools.ietf.org/html/rfc2822#section-3.3) since this is something that locale independent. Will see.

@floitschG
Copy link
Contributor

It is now Date.parse.


Added Fixed label.

@DartBot DartBot added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Feb 26, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
copybara-service bot pushed a commit that referenced this issue Jul 5, 2022
…4 revisions)

https://dart.googlesource.com/dartdoc/+log/900432d8cb1e..21f9341eb662

2022-07-05 [email protected] Switch to analyzer's updateAnalysisOptions2 (#3068)
2022-07-05 49699333+dependabot[bot]@users.noreply.github.com Bump ossf/scorecard-action from 1.1.1 to 1.1.2 (#3067)
2022-07-05 [email protected] bumped analyzer version to 4.0.0 (#3033)
2022-07-05 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.1.14 to 2.1.15 (#3066)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-doc-dart-sdk
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Dart Documentation Generator: https://github.com/dart-lang/dartdoc/issues
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: [email protected]
Change-Id: I6abe8e224af5682f96a7624e5b24a4921bf6c890
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250701
Commit-Queue: Kevin Moore <[email protected]>
Commit-Queue: DEPS Autoroller <[email protected]>
Reviewed-by: Kevin Moore <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants