Use a classe jodaTime, ela tem varias métodos para isso.
implementation 'joda-time:joda-time:2.10.3'
https://github.com/JodaOrg/joda-time
https://www.joda.org/joda-time/ Já usei muito ela, atualmente estudo o Kotlin
Em qua., 8 de jan. de 2020 às 16:21, Felipe Aron <felipearon@gmail.com> escreveu:
Como pegar a hora GMT+0 no Android, independente se o horário está automático ou não?--
Preciso do GMT+0 para cálculo de hora padrão no aplicativo, independente do fuso horário que o cliente está.--Developer & Digital Marketer
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CADxjQn8W%2BM037t80zf-z2Y%3DSppB1h%3DP1aRgTOMJQGT-0T62ryw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidbrasil-dev/CAJGxN_%3DVG9r0P36CJ3wDU-q%2BskiuqUyNxEqd%3Ds32id37MTLXYA%40mail.gmail.com.
0 comentários:
Postar um comentário