473,503 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

date and time from library function localtime()

6 New Member
Get the current date and time from library function localtime() and display it.
You have to include time.h
The prototype of this function is given in time.h

Sample Output
Today is Tuesday 3rd April 2007
The time is 10 : 15 : 30
Apr 3 '07 #1
2 1729
RedSon
5,000 Recognized Expert Expert
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR
Apr 3 '07 #2
RedSon
5,000 Recognized Expert Expert
You must also use a good thread title in the future. I will change this current thread title to something that is more descriptive but you must follow these guidelines in the future.

Thread Title Guidelines
Apr 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5422
by: WmGill | last post by:
I want to write a script that Among other things) renames a file based on it's timestamp. I can get the date info using "strftime('%y%m%d',localtime(os.stat('thefile'))", but this seems like a...
3
8154
by: Luis Pedro | last post by:
Hi there, Can anyone tell me if there is any time and date standard functions for C++ and, if so, were can I find documentation about it? If such functions do not exist, any hint of what library...
10
8228
by: Wen | last post by:
Is it easy to get the system date in c++? Somethings like in SQL or VB? -- Regards, Wen
17
6101
by: | last post by:
Hello, I need to send a Java date (milliseconds since the epoch 1970-01-01 00:00:00.000 GMT) through a socket to a C++ app and reconstruct exactly the same date in the C++ app as in the Java...
2
2489
by: Dan Jacobson | last post by:
Let's say you don't have any more documentation than man pages, and you want to figure out how to do the equivalent of $ date in C. I.e. just simply print out the current date and time. How to...
12
9803
by: Michael B Allen | last post by:
Are there any localized facilites for performing date arithmetic that properly considers leap years, daylight savings time, and whatever other peculiarities of the gregorian lunar calendar? ...
4
4758
by: Ekong, Samuel Akpan | last post by:
Hi, I am parsing a binary file and intend to read a date(not time) field encoded thus: 0xA1290B(little-endian). Now I know the date to be 12/04/2003 but just cannot get any of the known datetime...
17
2184
by: Razzel | last post by:
I created this as a test: #include <time.h> main(){ printf(X1: %s\n", putim()); printf(X2: %s\n", putim()); } putim() { time_t t; time(&t); return(ctime(&t));
6
2420
by: Jeremy Sanders | last post by:
Hi - I need to add support to a program for dates and times. The built-in Python library seems to be okay for many purposes, but what I would like would be Unix epoch style times (seconds relative...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.