Comments (8)
Perhaps you're right. I'll create the PR to add millis
method to RichDateTime
.
from nscala-time.
I had created the PR #62 to add millis
method
from nscala-time.
@crakjie Since your request has been merged as my PR #62, close this issue
from nscala-time.
There is a large jet lag between us ^^
I hope i don't make a mistake when i posted this issue : what i mean is the possibility ti set millis and millisOfSecond in the same why you set second property in github exemple page.
After reading the scaladoc i was thinking that is in richeDateTime implicit, but now i'm not sure :x
Envoyé de mon iPhone
Le 17 mai 2014 à 02:17, "Kota Mizushima" [email protected] a écrit :
Closed #61.
—
Reply to this email directly or view it on GitHub.
from nscala-time.
@crakjie Sorry. I'm not sure what you want to say properly perhaps because of my poor English skill.
I had thought that your request was to add millis
method to RichDateTime
because RichDateTime
lacks this method in spite of existence of second
method. Although you say my interpretation is misunderstanding, I'm not sure where it is.
If you don't mind, could you write pesudo code to explain what you want ?
from nscala-time.
Sorry, my english is way worth than your ;)
Exactly what i want to do is :
DateTime.now.hour(2).minute(45).second(10).millis(250)
From the fluent interface exemple.
Just that.
I looked what class lake of this "millis" method in your gitHub and frist i was thinking it was in RichDateTime , but after some use of your library i was having doubt.
Envoyé de mon iPhone
Le 17 mai 2014 à 15:16, "Kota Mizushima" [email protected] a écrit :
@crakjie Sorry. I'm not sure what you want to say properly perhaps because of my poor English skill. I had thought that you request is to add millis method to RichDateTime because RichDateTime lacks this method in spite of existence of second method. Although you say my interpretation is misunderstanding, I'm not sure where it is.
If you don't mind, can you create PR to explain what you want ?
—
Reply to this email directly or view it on GitHub.
from nscala-time.
@crakjie Thanks. I think that I understood What you want to say.
In current nscala-iime, probably, you can get what you want is the following:
val actual =
DateTime.now
.year.apply(2013) // Note that you can't call apply with the form `year(2013)`
.month(3)
.day(2)
.hour(7)
.minute(8)
.second(9)
.millis(500)
from nscala-time.
nikel ! ;)
Thanks
from nscala-time.
Related Issues (20)
- Latest Version publish HOT 1
- Drop Scala 2.9.3 support in newer version HOT 1
- Conversion from Interval to FiniteDuration HOT 4
- max min to DateTime HOT 3
- Add support for multiplication of constant with duration HOT 1
- Check if date is within time range
- RichLong is missing timezone-aware helpers
- Release for Scala 2.12.0 HOT 1
- Possible improvement: DateTime + FiniteDuration syntax
- Get weird result when I want to find period between two dates and subtract some date by it HOT 1
- Release with the latest joda HOT 1
- API changes report for Nscala Time
- Unexpected behaviour with setting DateTime to Midnight HOT 2
- Possible improvement: add the ability to exclude the end of the interval when splitting by period
- Where can I find current release notes?
- Reasons behind now() change? HOT 1
- What do you think about implicit toDateTime over long HOT 1
- New released needed for JDK 1.8u60 HOT 2
- Migrate to java.time HOT 1
- support for min / max operations HOT 1
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 nscala-time.