Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/Date-format/Ursa/date-format.ursa
Normal file
13
Task/Date-format/Ursa/date-format.ursa
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
cygnus/x ursa v0.78 (default, release 0)
|
||||
[Oracle Corporation JVM 1.8.0_51 on Mac OS X 10.10.5 x86_64]
|
||||
> import "java.util.Date"
|
||||
> import "java.text.SimpleDateFormat"
|
||||
> decl java.text.SimpleDateFormat sdf
|
||||
> sdf.applyPattern "yyyy-MM-dd"
|
||||
> decl java.util.Date d
|
||||
> out (sdf.format d) endl console
|
||||
2016-07-23
|
||||
> sdf.applyPattern "EEEE, MMMM dd, yyyy"
|
||||
> out (sdf.format d) endl console
|
||||
Saturday, July 23, 2016
|
||||
> _
|
||||
Loading…
Add table
Add a link
Reference in a new issue