Full Stack Developer — DateTime.Now for Scala (Scala for C# Developers)

1.5M ratings
277k ratings

See, that’s what the app is perfect for.

Sounds perfect Wahhhh, I don’t wanna

DateTime.Now for Scala (Scala for C# Developers)

To gain access to the method via Scala that provides this data the user must import  java.util.Calendar then the user calls:

Calendar.getInstance().getTime()

In the following sample code we have a Scala class definition  

That uses this method call to set the value of now.

class CanonicalConfidence {

  private val now = Calendar.getInstance().getTime()

}

Scala DateTime.Now in Scala Scala for C Developers

See more posts like this on Tumblr

#Scala #DateTime.Now in Scala #Scala for C Developers