Skip to content

This repository contains simple Rust and PHP programs that print a personalized greeting with the current time in Indian Standard Time (IST). Ideal for beginners learning time handling in both languages.

Notifications You must be signed in to change notification settings

AbhiramT21/Greeting-with-Time-in-Rust-and-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Task Four

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).

Contents

  • taskfour: Rust project that prints a greeting with the current time.
  • taskfour.php: PHP file that prints a greeting with the current time.

Rust Program

Description

The Rust program prints the message:

Hello Abhiram t, right now the time is <current time>

Installation

  1. Clone this repository:

    git clone https://github.com/AbhiramT21/Taskfour.git
    cd Taskfour
  2. Build and run the Rust program:

    cargo run

Output

The program will output something like this:

Hello Abhiram T, right now the time is 2024-09-11 16:30:00

PHP Program

Description

The PHP script prints the message:

Hello AbhiramT, right now the time is <current time>

Running the PHP script

  1. In the terminal, navigate to the project directory:

    cd Taskfour
  2. Run the PHP script:

    php taskfour.php

Output

The PHP script will output:

Hello AbhiramT, right now the time is <current_date> <current_time>

About

This repository contains simple Rust and PHP programs that print a personalized greeting with the current time in Indian Standard Time (IST). Ideal for beginners learning time handling in both languages.

Topics

Resources

Stars

Watchers

Forks