Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Android Implementation #407 Interpolate UTC to Local Timestamp #455

Closed
wants to merge 1 commit into from

Conversation

cdorner
Copy link
Contributor

@cdorner cdorner commented Dec 23, 2015

So, @macdonst I did this implementation for android.
Considering that you pass in the message something like that

  • format('2015-12-23T14:59:08.000Z', 'DATETIME:FULL,MEDIUM')
    ( e.g Hello your appointment is at format('2015-12-23T14:59:08.000Z', 'DATETIME:FULL,MEDIUM') )

If your language is PT-BT like mine the message will be show

  • quarta-feira, 23 de dezembro de 2015 12:59:08 PM (i.e wednesday, december 23 of 2015 12:59:08 PM .... Something like that in English)

There is several ways you can format the timestamp, where some examples.

  • format('2015-12-09T01:24:00.000Z', 'DATE')
  • format('2015-12-09T01:24:00.000Z', 'TIME')
  • format('2015-12-09T01:24:00.000Z', 'DATETIME')
  • format('2015-12-09T01:24:00.000Z', 'DATE:SHORT')
  • format('2015-12-09T01:24:00.000Z', 'DATE:FULL')

Only DATETIME needs two styles, one for date and another for time, if you don't pass any the system default will be used.

  • format('2015-12-09T01:24:00.000Z', 'DATETIME')
  • format('2015-12-09T01:24:00.000Z', 'DATETIME:MEDIUM,MEDIUM')

** Problems

  • I don't have a Mac OS, I don't even now objective-c, perhaps someone else can do that, can you do it ?? :)

@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants