العمل مع التاريخ والوقت
تعلّم التعامل مع التواريخ والأوقات وحساب الفروقات بينها باستخدام datetime.
🐍 Try Python right here
Write code below and click Run — it executes right in your browser, nothing is sent to any server.
Output will appear here.
الدروس
1
الحصول على التاريخ الحالي
وحدة datetime تتيح لك الحصول على التاريخ والوقت الحاليين، وتنسيقهما بأي شكل تريده.
✏️ Practice this lesson:
Output will appear here.