Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
33
Task/Date-format/Ring/date-format.ring
Normal file
33
Task/Date-format/Ring/date-format.ring
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
dateStr = date()
|
||||
date1 = timelist()[19] + "-" + timelist()[10] + "-" + timelist()[6]
|
||||
date2 = timelist()[2] + ", " + timelist()[4] + " " + timelist()[6] + ", " + timelist()[19] + nl
|
||||
? dateStr
|
||||
? date1
|
||||
? date2
|
||||
|
||||
/*
|
||||
timelist() ---> List contains the time and date information.
|
||||
Index Value
|
||||
----------------------------
|
||||
1 - abbreviated weekday name
|
||||
2 - full weekday name
|
||||
3 - abbreviated month name
|
||||
4 - full month name
|
||||
5 - Date & Time
|
||||
6 - Day of the month
|
||||
7 - Hour (24)
|
||||
8 - Hour (12)
|
||||
9 - Day of the year
|
||||
10 - Month of the year
|
||||
11 - Minutes after hour
|
||||
12 - AM or PM
|
||||
13 - Seconds after the hour
|
||||
14 - Week of the year (sun-sat)
|
||||
15 - day of the week
|
||||
16 - date
|
||||
17 - time
|
||||
18 - year of the century
|
||||
19 - year
|
||||
20 - time zone
|
||||
21 - percent sign
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue