Esempio n. 1
0
        public Json GetJson()
        {
            Json j = new Json();

            j["id"].Value      = Id;
            j["time"].Value    = Conversions.ToUnixTimeMs(Date);
            j["type"].Value    = Type.ToString().ToLowerInvariant();
            j["message"].Value = Message;
            return(j);
        }
Esempio n. 2
0
File: Utils.cs Progetto: nir94/Eddie
 public static Int64 UnixTimeStampMs()
 {
     return(Conversions.ToUnixTimeMs(DateTime.UtcNow));
 }