package com.kiminonawa.mydiary.shared;
import android.content.Context;
import com.kiminonawa.mydiary.R;
/**
* Created by daxia on 2016/10/27.
*/
public class TimeTools {
private String[] monthsFullName;
private String[] daysFullName;
private static TimeTools instance = null;
public static TimeTools getInstance(Context context) {
if (instance == null) {
instance = new TimeTools( context);
}
return instance;
}
private TimeTools(Context context) {
monthsFullName = context.getResources().getStringArray(R.array.months_full_name);
daysFullName = context.getResources().getStringArray(R.array.days_full_name);
}
public String[] getMonthsFullName() {
return monthsFullName;
}
public String[] getDaysFullName() {
return daysFullName;
}
}