Example #1
0
 public override string ToString()
 {
     return(_strArtist + "\t" +
            Title + "\t" +
            Album + "\t" +
            _iDuration + "\t" +
            DateTimePlayed.ToString("s"));
 }
Example #2
0
        public string getQueueTime(bool asUnixTime)
        {
            string queueTime = string.Empty;

            if (asUnixTime)
            {
                queueTime = Convert.ToString(Util.Utils.GetUnixTime(DateTimePlayed.ToUniversalTime()));
            }
            else
            {
                queueTime = String.Format("{0:0000}-{1:00}-{2:00} {3:00}:{4:00}:{5:00}",
                                          DateTimePlayed.Year,
                                          DateTimePlayed.Month,
                                          DateTimePlayed.Day,
                                          DateTimePlayed.Hour,
                                          DateTimePlayed.Minute,
                                          DateTimePlayed.Second);
            }
            return(queueTime);
        }