SORU
10 Kasım 2011, PERŞEMBE


Android Geçerli zaman damgası mı?

Böyle geçerli bir zaman damgası almak istiyorum :1320917972

int time = (int) (System.currentTimeMillis());
Timestamp tsTemp = new Timestamp(time);
String ts =  tsTemp.toString();

CEVAP
12 AĞUSTOS 2014, Salı


Çözüm :

Long tsLong = System.currentTimeMillis()/1000;
String ts = tsLong.toString();

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • RiverCityGraphix

    RiverCityGra

    6 Ocak 2012
  • SuperPrincessjo

    SuperPrinces

    1 EKİM 2010
  • The Onion

    The Onion

    14 Mart 2006