c#/연습문제

Booking up for Beauty

바르마스 2023. 2. 6. 18:00
728x90
public static class Appointment
{
    public static DateTime Schedule(string date) => DateTime.Parse(date);
    public static bool HasPassed(DateTime date) => date < DateTime.Now;
    public static bool IsAfternoonAppointment(DateTime date) => date >= date.AddHours(12) && date < date.AddHours(18);
    public static string Description(DateTime date) => $"You have an appointment on {date}.";
    public static DateTime AnniversaryDate() => new DateTime(DateTime.Now.Year, 9, 15, 0, 0, 0);

}

 

https://exercism.org/tracks/csharp/exercises/booking-up-for-beauty

 

Booking up for Beauty in C# on Exercism

Can you solve Booking up for Beauty in C#? Improve your C# skills with support from our world-class team of mentors.

exercism.org

 

728x90