//タイムスタンプ
    private string getTimeStamp(TIME_STAMP type)
    {
        string time;

        //タイムスタンプの設定書き足せます
        switch (type)
        {
        case TIME_STAMP.MMDDHHMMSS:
            time = DateTime.Now.ToString("MMddHHmmss");
            return(time);

        case TIME_STAMP.YYYYMMDDHHMMSS:
            time = DateTime.Now.ToString("yyyyMMddHHmmss");
            return(time);

        default:
            time = DateTime.Now.ToString("yyyyMMddHHmmss");
            return(time);
        }
    }
示例#2
0
    //タイムスタンプ
    private string getTimeStamp(TIME_STAMP type)
    {
        string time = "";

        ////タイムスタンプの設定書き足せます
        //switch (type)
        //{
        //    case TIME_STAMP.MMDDHHMMSS:
        //        time = DateTime.Now.ToString("MMddHHmmss");
        //        return time;
        //    case TIME_STAMP.YYYYMMDDHHMMSS:
        //        time = DateTime.Now.ToString("yyyyMMddHHmmss");
        //        return time;
        //    default:
        //        time = DateTime.Now.ToString("yyyyMMddHHmmss");
        //        return time;
        //}

        return(time);
    }