Exemple #1
0
        /// <summary>Transforms a YYYYMMDDHH24MISS timestamp into the specified date/time format.</summary>
        /// <param name="YYYYMMDDHH24MISS">Leave this parameter blank to use the current local date and time. Otherwise, specify all or the leading part of a timestamp in the YYYYMMDDHH24MISS format. If the date and/or time portion of the timestamp is invalid -- such as February 29th of a non-leap year -- the date and/or time will be omitted from OutputVar. Although only years between 1601 and 9999 are supported, a formatted time can still be produced for earlier years as long as the time portion is valid.</param>
        /// <param name="Format">If omitted, it defaults to the time followed by the long date, both of which will be formatted according to the current user's locale. For example: 4:55 PM Saturday, November 27, 2004 Otherwise, specify one or more of the date-time formats below, along with any literal spaces and punctuation in between (commas do not need to be escaped; they can be used normally). In the following example, note that M must be capitalized: M/d/yyyy h:mm tt</param>
        public static string FormatTime(string YYYYMMDDHH24MISS = "", string Format = "")
        {
            _AHK ahk = new _AHK();

            return(ahk.FormatTime(YYYYMMDDHH24MISS, Format));
        }