13-05-2024, 06:26 PM
Hola, soy nuevo en la programación, y estoy intentando entender como funcionan las fechas y horas en python, tengo esta situación:
quiero crear una agenda de citas, lo estoy haciendo en django, donde tengo mis modelos, de profesional, servicio (que brinda ese profesional), y como tal el objeto de reserva,
lo que quiero hacer o lo que tengo duda, es:
Ya tengo configurado horario de entrada y salida de un profesional digamos (7 am - 6 pm)
ahora cada servicio tiene un intervalo de tiempo, digamos "servicio1" es de 20 min.
como puedo ocupar con el objeto reserva, ese tiempo en la agenda del "profesional".
en realidad no entiendo como puedo ocupar espacios de tiempo, dentro de un objeto, para que yo pueda gestionar sus citas.
Les agradezco de antemano, y si alguen le sirve cuando termine puedo conpartirles mis repositorio de git, para que vean como quedo.
muchas gracias.
quiero crear una agenda de citas, lo estoy haciendo en django, donde tengo mis modelos, de profesional, servicio (que brinda ese profesional), y como tal el objeto de reserva,
lo que quiero hacer o lo que tengo duda, es:
Ya tengo configurado horario de entrada y salida de un profesional digamos (7 am - 6 pm)
ahora cada servicio tiene un intervalo de tiempo, digamos "servicio1" es de 20 min.
como puedo ocupar con el objeto reserva, ese tiempo en la agenda del "profesional".
en realidad no entiendo como puedo ocupar espacios de tiempo, dentro de un objeto, para que yo pueda gestionar sus citas.
Les agradezco de antemano, y si alguen le sirve cuando termine puedo conpartirles mis repositorio de git, para que vean como quedo.
muchas gracias.