This repository contains two simple programs (one in Rust and one in PHP) that print a personalized greeting along with the current time. The programs are configured to show the current time in Indian Standard Time (IST).
taskfour
: Rust project that prints a greeting with the current time.taskfour.php
: PHP file that prints a greeting with the current time.
The Rust program prints the message:
Hello Abhiram t, right now the time is <current time>
-
Clone this repository:
git clone https://github.com/AbhiramT21/Taskfour.git cd Taskfour
-
Build and run the Rust program:
cargo run
The program will output something like this:
Hello Abhiram T, right now the time is 2024-09-11 16:30:00
The PHP script prints the message:
Hello AbhiramT, right now the time is <current time>
-
In the terminal, navigate to the project directory:
cd Taskfour
-
Run the PHP script:
php taskfour.php
The PHP script will output:
Hello AbhiramT, right now the time is <current_date> <current_time>