물론 지인들한테 돈을 빌릴수도있습니다만, 사실 지인들과의 금전거래도 매우 좋지않은 이미지로
비춰지게 되는 법이지요.
그럼 이런생각을 하실 수 있습니다.
오늘 하루가 끝나기전에 돈이 들어올 구석은 분명히 있는 가운데에서,
돈이 현재 부족하니깐 일단은 신용카드 장기대출로 돈을 바로 땡겨서 사용하고 하루가 지나기전에 갚으면
신용등급도 떨어지지않고 문제도 되지 않을까????
저는 일단 말리고싶습니다.
일단 카드사별로 정책이 너무다도 다르기에 어떤카드사는 바로 nice지키미나 올크레딧에 바로 통보할 수 있으며,
어떤 카드는 실제로 안한다고 하더라도, 만에하나 그날 바로 장기대출을 갚을수없는 상황에 놓였거나 결제시간이 지나버린다면?????
그러면 무조건 빼박 대출로 잡히게 되고 신용등급은 하락하게 되어있습니다.
필자는 과거에 어느 카드사라고 밝힐 순 없지만 하루만에 빌려서 사용하고 바로갚아본적도있으며,
또한 하루만에 빌려서 바로갚으려다가 피치못할 사정으로 갚지못해서 신용등급이 하락 했던 적이 있습니다.
필자같은경우 하루만에 갚았을떄 신용등급에 영향을 받지 않았던 적도 있었으나, 이것은 카드사마다 정책도 전부다르고
과거와 현재의 정책 역시 다르기에 (요즘은 실시간으로 금융사끼리 데이터 공유를 한다고 하지요, 부동산 정책때문에)
이글을 보시고 리스크 있는 행위를 하려고 하지마세요. 제가 책임을 지거나 질수있는것도 아니고 과거의 팩트를 말한것이지(딱 한번) 현재도 이렇다라고도 말씀드릴수없으며 계속 강조드리지만 카드사마다 다를것이며 현재의 금융데이터 공유 정책은 언제나 바뀔수있기에 책임은 본인이 지셔야합니다.
문제는 국가별로 date format이 조금씩 달라서 글로벌 서비스를 하는경우에는 조금은 고민을 해봐야합니다.
어떻게 적절하게 국가별로 date와 time을 보여줄지요.
예로들면 우리나라는 2월24일을 2.24 이런format으로 표현한다면
독일은 24.02. 프랑스는 24/02 등 조금씩 선호하는 방식이 다른편입니다.
국가별로 분기해서 작성하자니 만만지않을것같아서 찾아보니 웬걸? 안드로이드에서는 편이상 이런 기능들까지 다 제공해주고있습니다.
위의 그림은 epoch time으로 한국, 미국, 독일, 프랑스의 date format을 나타내본것이고
time format도 출력해보았습니다. time format의 경우 현재 사용자가 12시간 format을 사용하고있는지 24시간 format을 사용하고있는지에 따라 출력되게끔 구현하였습니다.
MainActivity.java
main에서만 다 구성하였습니다.
getBestDateTimePattern - 현지 Locale에 맞는 date를 출력해줍니다. 기호에 따라 시간과 분도 format에 출력할 수 있습니다. 여기서 좋고 편한것은, MM과 DD의 위치를 신경쓰실 필요가없습니다.
Locale에 맞도록 적절하게 순서를 다시 바꿔서 return해줍니다.
getProperTimeAsClockPreference - 현재의 context 정보에 맞게끔 time format을 return하게 됩니다.
12시간, 24시간제 인지에 따라 변환해주고 또한, 국가에 따라 조금씩 다른 format을 주기까지합니다.
public String getBestDateTimePattern (Locale locale) {
//return DateFormat.getBestDateTimePattern(locale, "MM dd hh:mm");
return DateFormat.getBestDateTimePattern(locale, "MM dd");
}
/*
12 / 24 For distinguish
static DateFormat getTimeFormat(Context context)
Returns a DateFormat object that can format the time according to the context's locale and the user's 12-/24-hour clock preference.
*/
public java.text.DateFormat getProperTimeAsClockPreference(Context context) {
return DateFormat.getTimeFormat(context);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button button = findViewById(R.id.button);
final TextView tv = findViewById(R.id.textView);
button.setOnClickListener(new View.OnClickListener () {
@Override
public void onClick(View view) {
SimpleDateFormat dateFormat = null;
long time = System.currentTimeMillis();
tv.append("\n time:::" + time);
String bestDateFormat = getBestDateTimePattern(Locale.KOREA);
dateFormat = new SimpleDateFormat(bestDateFormat);
String convertedKoreaDate = dateFormat.format(new Date(time));
tv.append("\n" + convertedKoreaDate);
bestDateFormat = getBestDateTimePattern(Locale.US);
dateFormat = new SimpleDateFormat(bestDateFormat);
String convertedDate = dateFormat.format(new Date(time));
tv.append("\n" + convertedDate);
bestDateFormat = getBestDateTimePattern(Locale.GERMAN);
dateFormat = new SimpleDateFormat(bestDateFormat);
convertedDate = dateFormat.format(new Date(time));
tv.append("\n" + convertedDate);
bestDateFormat = getBestDateTimePattern(Locale.FRANCE);
dateFormat = new SimpleDateFormat(bestDateFormat);
convertedDate = dateFormat.format(new Date(time));
tv.append("\n" + convertedDate);
long stampAsCal;
java.text.DateFormat formatDateTime;
formatDateTime = getProperTimeAsClockPreference(getApplicationContext());
String _time = formatDateTime.format(time);
tv.append("\n converted time:" + _time);
//kr 24 case: 1:11
//kr 12 case: 오전 1:11
//ge 24 case: 1:11
//ge 12 case: 1:11 vorm
// remove space
String convertedConvertedKoreaDate = convertedKoreaDate.replace(" ", "");
// remove . end of the date
if (convertedConvertedKoreaDate.length() > 0 && convertedConvertedKoreaDate.charAt(convertedConvertedKoreaDate.length()-1) == '.') {
convertedConvertedKoreaDate = convertedConvertedKoreaDate.substring(0, convertedConvertedKoreaDate.length()-1);
Log.d("jinss", "gotta");
}
convertedConvertedKoreaDate = convertedConvertedKoreaDate + " " + _time;
tv.append("\n final converted time:" + convertedConvertedKoreaDate);
}
});
}
한국, 미국, 독일, 프랑스에 대해서 시험적으로 테스트 해보았습니다.
또한 최종 date와 time까지 출력도 해보았습니다.
앱을 실행해놓고, 12시간 24시간 변경도 해보신다음 버튼을 눌러서 텍스트가 바뀌어서 나오는지도 한번 확인해보시면 되겠습니다.