Skip to content

Commit

Permalink
moving this method from iceberg to base package.
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Oct 21, 2019
1 parent 630461d commit 356810b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Kernel/DateAndTime.class.st
Expand Up @@ -302,6 +302,17 @@ DateAndTime >> asDuration [

]

{ #category : #converting }
DateAndTime >> asStringYMDHM [

^ String streamContents: [ :aStream |
self printYMDOn: aStream.
aStream nextPut: Character space.
self hour printOn: aStream base: 10 length: 2 padded: true.
aStream nextPut: $:.
self minute printOn: aStream base: 10 length: 2 padded: true ]
]

{ #category : #converting }
DateAndTime >> asTime [

Expand Down

0 comments on commit 356810b

Please sign in to comment.