Esempio n. 1
0
        public static void Time_OnCommand(CommandEventArgs e)
        {
            Mobile m = e.Mobile;

            if (m is PlayerMobile)
            {
                //m.SendMessage("Server time is: {0} PST.", DateTime.Now);

                AdjustedDateTime ddt = new AdjustedDateTime(DateTime.Now);
                m.SendMessage("Server time is: {0} {1}.", ddt.Value.ToShortTimeString(), ddt.TZName);
            }
        }
Esempio n. 2
0
 public string ToString(string numberFormat, CultureInfo culture)
 {
     return(AdjustedDateTime.ToString(numberFormat, culture));
 }