2022-07-12 15:35:43 +00:00
|
|
|
Extension { #name : #String }
|
|
|
|
|
|
|
|
{ #category : #'*TiddlyWiki' }
|
|
|
|
String >> asDateAndTimeForTiddler [
|
|
|
|
|
|
|
|
| date |
|
|
|
|
date := OrderedCollection new.
|
|
|
|
1 to: 4 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: '-'.
|
|
|
|
5 to: 6 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: '-'.
|
|
|
|
7 to: 8 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: 'T'.
|
|
|
|
9 to: 10 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: ':'.
|
|
|
|
11 to: 12 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: ':'.
|
|
|
|
13 to: 14 do: [ :i | date add: (self at: i) ].
|
|
|
|
date add: '.'.
|
|
|
|
15 to: 17 do: [ :i | date add: (self at: i) ].
|
2023-06-07 16:38:56 +00:00
|
|
|
^ ((date joinUsing: ''), '+00:00') asDateAndTime
|
2022-07-12 15:35:43 +00:00
|
|
|
]
|