// Path: app/src/main/java/info/curtbinder/reefangel/phone/Utils.java
// public class Utils {
// 
//     public final static int THEME_DARK = 0;
//     public final static int THEME_LIGHT = 1;
//     private static int iTheme = THEME_LIGHT;
// 
//     public static int getCurrentTheme() { return iTheme; }
// 
//     /**
//      * Set the theme of the Activity, and restart it by creating a new Activity of the same type.
//      */
//     public static void changeToTheme(Activity activity, int theme)
//     {
//         iTheme = theme;
//         activity.finish();
//         activity.startActivity(new Intent(activity, activity.getClass()));
//     }
//     /** Set the theme of the activity, according to the configuration. */
//     public static void onActivityCreateSetTheme(Activity activity)
//     {
//         switch (iTheme)
//         {
//             default:
//             case THEME_LIGHT:
//                 activity.setTheme(R.style.AppTheme);
//                 break;
//             case THEME_DARK:
// //                activity.setTheme(R.style.AppThemeDark);
//                 break;
//         }
//     }
//     public static void onActivityCreateSetTheme(Activity activity, int theme) {
//         iTheme = theme;
//         onActivityCreateSetTheme(activity);
//     }
// 
//     public static SimpleDateFormat getDefaultDateFormat() {
//         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
//     }
// 
//     public static String getNotificationDateFormatString(long when) {
//         DateFormat fmt = Utils.getNotificationDateFormat();
//         return fmt.format(new Date(when));
//     }
// 
//     private static DateFormat getNotificationDateFormat() {
//         return DateFormat.getDateTimeInstance(DateFormat.SHORT,
//                 DateFormat.SHORT,
//                 Locale.getDefault());
//     }
// 
//     public static DateFormat getOldDefaultDateFormat() {
//         return DateFormat.getDateTimeInstance( DateFormat.DEFAULT,
//                 DateFormat.DEFAULT,
//                 Locale.getDefault() );
//     }
// 
//     public static String getDisplayDate(String dbDateFormat) {
//         // Assign the return value to be the date given
//         // If there is a problem converting the date, just return the given date
//         String displayDate = dbDateFormat;
//         SimpleDateFormat dftProper = Utils.getDefaultDateFormat();
//         Date d;
//         try {
//             // Parse the universal standard date format that is stored in the DB
//             d = dftProper.parse(dbDateFormat);
//             Calendar cal = Calendar.getInstance();
//             cal.setTime(d);
//             DateFormat dftDisplay = Utils.getOldDefaultDateFormat();
//             // Convert to the display date format
//             displayDate = dftDisplay.format(cal.getTime());
//         } catch (ParseException e) {
//             e.printStackTrace();
//         }
//         return displayDate;
//     }
// }
// 
// Path: app/src/main/java/info/curtbinder/reefangel/service/RequestCommands.java
// public final class RequestCommands {
// 	// Request commands sent to the controller
// 	public static final String MemoryByte = "/mb";
// 	public static final String MemoryInt = "/mi";
// 	public static final String Status = "/r99";
// 	// public static final String Status = "/sr";
// 	public static final String DateTime = "/d";
// 	public static final String Version = "/v";
// 	public static final String FeedingMode = "/mf";
// 	public static final String WaterMode = "/mw";
// 	public static final String AtoClear = "/mt";
// 	public static final String OverheatClear = "/mo";
// 	public static final String ExitMode = "/bp";
// 	public static final String Relay = "/r";
// 	public static final String LightsOn = "/l1";
// 	public static final String LightsOff = "/l0";
//     public static final String Reboot = "/boot";
//     public static final String Calibrate = "/cal";
//     public static final String PwmOverride = "/po";
// 	public static final String CustomVar = "/cvar";
// 	public static final String None = "";
// 	public static final String ReefAngel = "ra";
// }


import info.curtbinder.reefangel.phone.Utils;
import info.curtbinder.reefangel.service.RequestCommands;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;
		this.updateStatus = s;
	}

	public String getUpdateStatus ( ) {
		return updateStatus;
	}

	public String getDateString ( ) {
		// TODO confirm proper month formatting
		DateFormat dft =
				DateFormat.getDateInstance( DateFormat.SHORT,
											Locale.getDefault() );
		Calendar c = Calendar.getInstance();
		c.clear();
		c.set( year, month, day );
		return dft.format( c.getTime() );
	}

	public String getTimeString ( ) {
		DateFormat dft =
				DateFormat.getTimeInstance( DateFormat.SHORT,
											Locale.getDefault() );
		Calendar c = Calendar.getInstance();
		c.clear();
		c.set( 0, Calendar.JANUARY, 0, hour, minute );
		return dft.format( c.getTime() );
	}

	public String getDateTimeString ( ) {
		// TODO confirm usage of getDateTimeString function call
// Path: app/src/main/java/info/curtbinder/reefangel/phone/Utils.java
// public class Utils {
// 
//     public final static int THEME_DARK = 0;
//     public final static int THEME_LIGHT = 1;
//     private static int iTheme = THEME_LIGHT;
// 
//     public static int getCurrentTheme() { return iTheme; }
// 
//     /**
//      * Set the theme of the Activity, and restart it by creating a new Activity of the same type.
//      */
//     public static void changeToTheme(Activity activity, int theme)
//     {
//         iTheme = theme;
//         activity.finish();
//         activity.startActivity(new Intent(activity, activity.getClass()));
//     }
//     /** Set the theme of the activity, according to the configuration. */
//     public static void onActivityCreateSetTheme(Activity activity)
//     {
//         switch (iTheme)
//         {
//             default:
//             case THEME_LIGHT:
//                 activity.setTheme(R.style.AppTheme);
//                 break;
//             case THEME_DARK:
// //                activity.setTheme(R.style.AppThemeDark);
//                 break;
//         }
//     }
//     public static void onActivityCreateSetTheme(Activity activity, int theme) {
//         iTheme = theme;
//         onActivityCreateSetTheme(activity);
//     }
// 
//     public static SimpleDateFormat getDefaultDateFormat() {
//         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
//     }
// 
//     public static String getNotificationDateFormatString(long when) {
//         DateFormat fmt = Utils.getNotificationDateFormat();
//         return fmt.format(new Date(when));
//     }
// 
//     private static DateFormat getNotificationDateFormat() {
//         return DateFormat.getDateTimeInstance(DateFormat.SHORT,
//                 DateFormat.SHORT,
//                 Locale.getDefault());
//     }
// 
//     public static DateFormat getOldDefaultDateFormat() {
//         return DateFormat.getDateTimeInstance( DateFormat.DEFAULT,
//                 DateFormat.DEFAULT,
//                 Locale.getDefault() );
//     }
// 
//     public static String getDisplayDate(String dbDateFormat) {
//         // Assign the return value to be the date given
//         // If there is a problem converting the date, just return the given date
//         String displayDate = dbDateFormat;
//         SimpleDateFormat dftProper = Utils.getDefaultDateFormat();
//         Date d;
//         try {
//             // Parse the universal standard date format that is stored in the DB
//             d = dftProper.parse(dbDateFormat);
//             Calendar cal = Calendar.getInstance();
//             cal.setTime(d);
//             DateFormat dftDisplay = Utils.getOldDefaultDateFormat();
//             // Convert to the display date format
//             displayDate = dftDisplay.format(cal.getTime());
//         } catch (ParseException e) {
//             e.printStackTrace();
//         }
//         return displayDate;
//     }
// }
// 
// Path: app/src/main/java/info/curtbinder/reefangel/service/RequestCommands.java
// public final class RequestCommands {
// 	// Request commands sent to the controller
// 	public static final String MemoryByte = "/mb";
// 	public static final String MemoryInt = "/mi";
// 	public static final String Status = "/r99";
// 	// public static final String Status = "/sr";
// 	public static final String DateTime = "/d";
// 	public static final String Version = "/v";
// 	public static final String FeedingMode = "/mf";
// 	public static final String WaterMode = "/mw";
// 	public static final String AtoClear = "/mt";
// 	public static final String OverheatClear = "/mo";
// 	public static final String ExitMode = "/bp";
// 	public static final String Relay = "/r";
// 	public static final String LightsOn = "/l1";
// 	public static final String LightsOff = "/l0";
//     public static final String Reboot = "/boot";
//     public static final String Calibrate = "/cal";
//     public static final String PwmOverride = "/po";
// 	public static final String CustomVar = "/cvar";
// 	public static final String None = "";
// 	public static final String ReefAngel = "ra";
// }


// Path: app/src/main/java/info/curtbinder/reefangel/controller/DateTime.java
import info.curtbinder.reefangel.phone.Utils;
import info.curtbinder.reefangel.service.RequestCommands;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;

		this.updateStatus = s;
	}

	public String getUpdateStatus ( ) {
		return updateStatus;
	}

	public String getDateString ( ) {
		// TODO confirm proper month formatting
		DateFormat dft =
				DateFormat.getDateInstance( DateFormat.SHORT,
											Locale.getDefault() );
		Calendar c = Calendar.getInstance();
		c.clear();
		c.set( year, month, day );
		return dft.format( c.getTime() );
	}

	public String getTimeString ( ) {
		DateFormat dft =
				DateFormat.getTimeInstance( DateFormat.SHORT,
											Locale.getDefault() );
		Calendar c = Calendar.getInstance();
		c.clear();
		c.set( 0, Calendar.JANUARY, 0, hour, minute );
		return dft.format( c.getTime() );
	}

	public String getDateTimeString ( ) {
		// TODO confirm usage of getDateTimeString function call
		DateFormat dft = Utils.getOldDefaultDateFormat();