Socialmetrica/Socialmetrica.package/Tweet.class/instance/created.st

5 lines
240 B
Smalltalk
Raw Normal View History

accessing
created
created class = DateAndTime ifTrue: [ ^ created ].
^ (created endsWith: 'GMT')
ifTrue: [ ^ DateAndTime fromString: ((created splitOn: $,) second withoutSuffix: 'GMT') ] ifFalse: [ ^ DateAndTime fromString: created ].