Comments (8)
@Ascenio I see. It is past tense. I didn't think about tense.
from time.dart.
Do you want these?
If so, I will pull-request.
someDateTimeValue.isToday(); => true or false
someDateTimeValue.isTomorrow(); => true or false
someDateTimeValue.isYesterday(); => true or false
You can do without (), use like a GET attribute: date.isYesterday
Instead you create a method like:
bool isYesterday(){
return true;
}
you will create:
bool get isYesterday => return true;
or
bool get isYesterday {
return true;
}
from time.dart.
@Katekko Hello. Do you want this?
p.s. I like Courage the Cowardly Dog!
from time.dart.
I did PR
from time.dart.
What do you think about changing isYesterday
to wasYesterday
?
from time.dart.
@Ascenio I fix it in PR.
@jogboms
Can you check?
from time.dart.
Closed by #32
from time.dart.
thanks
from time.dart.
Related Issues (19)
- Mergin your code with dartx HOT 1
- Please increment the package major version for breaking changes HOT 1
- copyWith method HOT 1
- Does this package gives us local time from client device or utc? HOT 1
- [Feature Request] Get only date or only time HOT 8
- [Feature Request] add months in NumTimeExtension HOT 17
- Shorthand for .difference(DateTime.now()) HOT 4
- [Feature Request]age calculation HOT 4
- New release? HOT 1
- Migrate to null-safety HOT 1
- copyWith ignores isUtc field
- build is failured
- Don't import implementation files from another package.
- [Feature Request] New methods on DateTime (firstDayOfMonth, lastDayOfMonth, lastDayOfWeek, firstDayOfWeek, firstDayOfYear, lastDayOfYear)
- [Feature Request] DateTime clamp HOT 1
- Remove utilities already provided by `package:clock`
- add isAfterMonth isAfterDay isBeforeMonth isBeforeDay
- Rename later to fromNow to clarify the origin time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from time.dart.