📜  c#半小时下拉列表 - C#代码示例

📅  最后修改于: 2022-03-11 14:49:20.735000             🧑  作者: Mango

代码示例1
static void DisplaySlots(string format, TimeSpan slotLength, int slots)
{
    DateTime time = DateTime.Today;
    for (int i = 0; i < slots; i++)
    {
        Console.WriteLine(time.ToString(format));
        time = time + slotLength;
    }
}