Introduction
In the year 2150, humanity has expanded beyond the limits of our Earth, establishing a thriving metropolis on the moon, named Lunar Prime. This scientific marvel draws diplomats and dignitaries from across the solar system, including an esteemed ambassador from the distant planet of Xylar. As the lead system administrator for Lunar Prime's Central Observatory, you are responsible for ensuring that all digital systems are running smoothly during the Xylarian ambassador's visit.
To maintain the impeccable standards for which Lunar Prime is renowned and to coordinate accurately with the intergalactic diplomatic protocols, precise time keeping and display are essential. As various events and meetings are scheduled using Universal Coordinated Time (UTC) converted to Xylar's Local Time (XLT), your objective is to masterfully manage Linux date and time settings to ensure seamless operations during diplomatic proceedings.
Formatting the Time Output
In this step, you will modify the time output to suit the needs of the Xylarian ambassador during their visit.
Tasks
- Format the date and time output to show the full weekday name, the year, and the time in hours and minutes.
Requirements
- The commands should be placed in a script named
step1.shlocated in~/project. Execute it withbash ~/project/step1.sh.
Example
Formatted date and time, including the full weekday name, year, and time in hours and minutes:
Tuesday, 2150-03-09, 16:45
Converting UTC to Xylar's Local Time (XLT)
This step involves adapting the displayed time for the visiting Xylarian ambassador by converting UTC to XLT, which is UTC+6.25 hours.
Tasks
- Calculate the current time in Xylar's Local Time (XLT) from UTC.
- Display the calculated Xylar's Local Time (XLT) with the format
YYYY-MM-DD HH:MM:XLT.
Requirements
- Place the commands for Step 2 in a script named
step2.shlocated in~/project. Execute it withbash ~/project/step2.sh. - +6.25 hours is equivalent to 6 hours and 15 minutes.
date -u "<format>" --date='<condition>'
Example
Xylar's Local Time (XLT):
2150-03-09 22:16:XLT
Summary
In this challenge, you were tasked with accurately displaying and manipulating date and time on a Linux system within a real-world context of interstellar diplomacy. The ability to customize time outputs and make conversions between time zones is a crucial skill for system administrators, especially in a diverse environment like Lunar Prime. These skills not only keep operations seamless but also foster interplanetary relations. Commending your efforts in this task underlines the importance of precision in our expanding intergalactic community.



