Giter Site home page Giter Site logo

Comments (8)

kmizu avatar kmizu commented on June 23, 2024

Perhaps you're right. I'll create the PR to add millis method to RichDateTime.

from nscala-time.

kmizu avatar kmizu commented on June 23, 2024

I had created the PR #62 to add millis method

from nscala-time.

kmizu avatar kmizu commented on June 23, 2024

@crakjie Since your request has been merged as my PR #62, close this issue

from nscala-time.

crakjie avatar crakjie commented on June 23, 2024

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.

kmizu avatar kmizu commented on June 23, 2024

@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.

crakjie avatar crakjie commented on June 23, 2024

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.

kmizu avatar kmizu commented on June 23, 2024

@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.

crakjie avatar crakjie commented on June 23, 2024

nikel ! ;)
Thanks

from nscala-time.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.