load("C:/Simulate/MaximaDos/Dos/CP1252.lsp")$

now()$
current_date: now()$
current_day: day(current_date)$
current_month: month(current_date)$
current_year: year(current_date)$
current_hour: hour(current_date)$
current_minute: minute(current_date)$
current_second: second(current_date)$

print("Date actuelle : ", current_day, "/", current_month, "/", current_year);
print("Heure actuelle : ", current_hour, ":", current_minute, ":", current_second);

now();

now()$
current_date: now();

/* Exécuter la commande système pour obtenir la date actuelle */
date_actuelle: run_command("date", "-u", "+%Y-%m-%d %H:%M:%S");

/* Afficher la date actuelle */
print("Date actuelle : ", date_actuelle);