summaryrefslogtreecommitdiff
path: root/Analizator9000/Analizator9000/Utils.cs
blob: 7bdf270f3c2002e89af508ee7043486314a982b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Analizator9000
{
    /// <summary>
    /// Random utility class.
    /// </summary>
    //TODO Merge with Contract, probably.
    class Utils
    {
        /// <summary>
        /// Provides a timestamped filename in uniform format.
        /// </summary>
        /// <param name="extension">Desired file extension.</param>
        /// <returns>Filename prefixed with program identificator, containing a timestamp for request.</returns>
        static public String getFilename(String extension)
        {
            return "an9k-" + DateTime.Now.ToString("yyyyMMddHHmmssFFF") + "." + extension;
        }
    }
}