Ejemplo n.º 1
0
        private static WebResponse GetTime(WebRequest request)
        {
            DateTime now = DateTime.Now;

            Debug.Print("Sending " + now.ToLocalTime());
            return(new JsonResponse("\"" + JsonDateTime.ToASPNetAjax(now) + "\""));
        }
Ejemplo n.º 2
0
        private static WebResponse SetTime(WebRequest request)
        {
            DateTime time = JsonDateTime.FromASPNetAjax(request.Content);

            Utility.SetLocalTime(time);
            Debug.Print("Time Set to " + time.ToUniversalTime() + " (day = " + time.Day + ")");
            return(new EmptyResponse());
        }
Ejemplo n.º 3
0
 public SaveData(
     string stringJSON,
     string intJSON,
     DateTime date)
 {
     SaveStringJSON = stringJSON;
     SaveIntJSON    = intJSON;
     dateTime       = date;
 }