소소한 이야기

소소한 이야기

  • 분류 전체보기 (81)
    • 개발 (77)
      • PHP (11)
      • GO (2)
      • Python (4)
      • Node (6)
      • jQuery (4)
      • Vue (2)
      • CSS (1)
      • iOS (11)
      • Android (14)
      • React Native (2)
      • Flutter (2)
      • R (2)
      • AWS (12)
      • Server (1)
      • Terraform (0)
      • Git (1)
    • 개발 - NoCode (3)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

소소한 이야기

컨텐츠 검색

태그

게임스샷 Android nestjs 기록 swift 맛집 어플 mustadd 안드로이드 서비스 php 머스태드 wkwebview airtable 어비스리움 amazon bedrock Android Studio laravel 게임 IOS

최근글

댓글

공지사항

아카이브

getRelativeTimeSpanString(1)

  • [머스태드개발일지] getRelativeTimeSpanString를 이용한 시간표시

    sql에 datetime으로 저장되어 있는 값을 string으로 들고와서 표시 Date date = new Date();SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");try {date = sdf.parse(STRING);} catch (ParseException e) {e.printStackTrace();} CharSequence timeAgo = DateUtils.getRelativeTimeSpanString(date.getTime(),System.currentTimeMillis(), DateUtils.DAY_IN_MILLIS);

    2015.01.21
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바