Python program to print current date and time in cmd

preview_player
Показать описание
Using OS System method get current date in CMD by Python.Python program for beginners.
The OS module in Python provides functions for interacting with the operating system. OS, comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.

SOURCE CODE


# importing os module
import os

# Command to execute
# Using Windows OS command
cmd = 'date'


Related search:
* How to Print Current Date and Time in Python
* Datetime Module (Dates and Times) || Python Tutorial || Learn Python Programming
* Date and Time in Python | datetime Module Explained | Python Tutorial for Beginners
* Python - How to Print Current Date and Time
* How to Print Current Date and Time in Python

––––––––––––––––––––––––––––––
Track: Rooftop Marrakech — Vendredi [Audio Library Release]
Music provided by Audio Library Plus
––––––––––––––––––––––––––––––
Рекомендации по теме