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); } }
public string ToString(string numberFormat, CultureInfo culture) { return(AdjustedDateTime.ToString(numberFormat, culture)); }