Find Jobs
Hire Freelancers

Fortran Program for Runtime Log Generation

$30-250 AUD

Suoritettu
Julkaistu noin kuukausi sitten

$30-250 AUD

Maksettu toimituksen yhteydessä
I'm in need of a competent expert in Modern Fortran programming to create a lightweight program. The primary task will be implementing functionality that generates a runtime log file. This isn't your average log file; each record should have the date and time appended to it. Your task is to ensure each execution of the program creates a new log file instead of overwriting the existing data. In terms of filename format, I'm after a specific style. I want it to use the current date and time, formatted like so: "16/03/2024 8:40:13 AM". Key skills needed: - Proficient in Modern Fortran - Experience working with log file generation - Attention to detail (precise date/time formatting and file naming) This task is a small but critical part of a larger project. Accuracy and precision are key. Apply if you're confident in your ability to deliver this requirement. Here is the sample code generated by ChatGPT (check out the file: Fortran Program for Runtime Log [login to view URL] - you will see the indentation): Creating a Fortran runtime log that includes the date and time for each record in the specified format (dd/mm/yyyy hh:mm:ss AM/PM) involves using the intrinsic `date_and_time` and `time` functions to capture the current date and time, then formatting it accordingly. Fortran doesn't have built-in AM/PM formatting, so we'll need to manually convert from 24-hour to 12-hour format and decide whether it's AM or PM. Here's an example program that demonstrates how to write log entries to a file with the specified date and time format: ```fortran program logging_example implicit none character(len=8) :: date character(len=10) :: time integer :: hours, minutes, seconds, values(8) character(len=2) :: am_pm character(len=20) :: formatted_datetime ! Open the log file open(unit=10, file='[login to view URL]', status='unknown', action='write') ! Get the current date and time call date_and_time(date, time, values) read(time(1:2), *) hours read(time(3:4), *) minutes read(time(5:10), *) seconds ! Convert 24-hour to 12-hour format and set AM/PM if (hours >= 12) then am_pm = 'PM' if (hours > 12) then hours = hours - 12 end if else if (hours == 0) then hours = 12 end if am_pm = 'AM' end if ! Format the datetime string write(formatted_datetime, '(I2.2,"/",I2.2,"/",I4," ",I2.2,":",I2.2,":",I2.2," ",A2)') & values(3), values(2), values(1), hours, minutes, seconds, am_pm ! Write a log entry write(10, '(A)') 'Log entry at ' // trim(formatted_datetime) // ': Hello, World!' ! Close the log file close(unit=10) print *, 'Log entry added.' end program logging_example ``` In this example, the program opens a file called `[login to view URL]` and writes a single log entry with the current date and time formatted as requested. It uses `date_and_time` to get the current date and separates the time into hours, minutes, and seconds to manually format it to a 12-hour format with AM or PM.
Projektin tunnus (ID): 37981122

Tietoa projektista

6 ehdotukset
Etäprojekti
Aktiivinen kuukausi sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
$0 AUD 3 päivässä
0,0 (0 arvostelua)
0,0
0,0
6 freelancerit tarjoavat keskimäärin $103 AUD tätä projektia
Käyttäjän avatar
Hi, I'm Lokendra Sharma, and I specialize in Modern Fortran programming. I have extensive experience with log file generation and precise date/time formatting. I understand your requirement for a lightweight program that generates a unique runtime log file for each execution. It's crucial that each record includes the date and time formatted as "dd/mm/yyyy hh:mm:ss AM/PM". I have the necessary skills to implement this functionality proficiently. I will ensure that the program creates a new log file for every execution to prevent data overwriting. My attention to detail guarantees accurate date/time formatting and filename style adherence. By utilizing the `date_and_time` and `time` functions in Fortran, I will capture and format the current date and time according to your specifications. I will implement the conversion from 24-hour to 12-hour format and include the AM/PM designation accurately. My proposed solution guarantees precision and reliability. I am confident in my ability to deliver this critical component for your larger project. Thank you for considering my proposal. I look forward to the opportunity to work on this task and contribute to the success of your project.
$30 AUD 7 päivässä
0,0 (0 arvostelua)
0,0
0,0
Käyttäjän avatar
With a rich background and prior experience in the field, I have the skills and knowledge needed for seamless task execution. Familiarity with similar challenges allows me to efficiently overcome obstacles. My expertise ensures thoroughness and efficiency in task handling, while my ability to foresee and solve potential issues enhances process streamlining. Committed to delivering top-notch results on time, I aim to not just meet but exceed expectations. My qualifications make me a prime candidate for the task, eager to contribute to its success.
$30 AUD 1 päivässä
0,0 (0 arvostelua)
0,0
0,0
Käyttäjän avatar
Greetings, I hope this proposal finds you in excellent health. Welcome to my profile, Home to Professional and Quality services with 100% customer satisfaction guarantee. I'm a Certified & Experienced Expert. Dear Client, I take this opportunity to inform you that i have KEENLY gone through your project titled (Fortran Program for Runtime Log Generation), clearly understood all your project requirements as given in your project description and I confirm to you that i can perfectly deliver as instructed. Being in possession of all CLEARLY STATED required project skills (Coding and Fortran) as this is my area of professional specialisation having completed all Certifications and developed adequate experience in the same area, I hereby humbly request you to consider my bid for Professional, Quality and Affordable services always. I guarantee and assure you that with me you will receive AFFORDABLE QUALITY SERVICES,STRICT TIMELY DELIVERY & UNLIMITED REVISIONS. Incase your project is deleted, please hire me directly via; https://www.freelancer.com/u/protechdeveloper Kindly Message Me We Discuss More About The Project and seal the contract. Welcome and Thank-you.
$250 AUD 1 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan AUSTRALIA lippu
Richmond South, Australia
5,0
42
Maksutapa vahvistettu
Liittynyt syysk. 24, 2012

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.