Hi all,
I want to add a minute to present time.
E.g:
if present time is 09:55, I want to make it 09:56.
Please help!!
I tried below script
#!/bin/ksh
timeut=`date -u '+%R'`
let timeut1=$timeut + 1
echo "timeut1 = $timeut1"
Regards
Prashant:confused: (14 Replies)
Hello,
RHEL5.5
PYTHON=2.4.3
I have 2 python variables using the datetime module.
Here is how I call them:
print "Current Time: %s" % now
print "LastDownloadTime: %s" % LastDownloadTime
Here is an example of an issue.
Current Time: 2012-01-05 14:06:09.749240... (2 Replies)
Dear all, today I'm scratching my head with a simple (I believe) issue.
Working with date is quite simple, so if I Need to add some seconds to current time, I'll use:
date --date='+30 seconds' +"%Y-%m-%d %H:%M:%S"But, how to pass the value to add from a variable? I tried the following without... (2 Replies)
hi,
i have some files in a directory say
abc.txt
def.txt
ghi.txt
i am storing these file names in a temp file.
ls -l | grep "^-" | awk '{print $NF}' > temp_file$$
i want to add a date time stamp at a particular place in the file names.
it can be
1) before the extension... (2 Replies)
Hello All,
I am working on script where I need to add hours,minutes or seconds in the time.Time is not the current but it could be future time.I thought I can store that time in variable and add hours.minutes or second but I am not able to add that in the time that is stores in a variable.
Time... (9 Replies)
Hello All,
I have a date with timestamp stored in a variable and another variable which stores no. of days.
Var1=2014-12-11 12:54:21
Var2=5
In my unix script, I have to add the no. of days stored in var2 with the var1 date.
Var3=var1+var2=2014-12-16 12:54:21
Can you please advise if... (8 Replies)
Hi Unix Members,
Can anyone guide me to write one shell script to monitor the attach screen processes and when interrupted mail us. ,
like the processes - /bin/ciserver , /bin/clock , /bin/cserver , /bin/main
Please looking forward you guys help. (6 Replies)
Hi, please help with below time conversion to minutes.
one column values:
2 minutes 16 seconds 420 msec
43 seconds 750 msec
0 days 3 hours 29 minutes 58 seconds 480 msec
11 seconds 150 msec
I need output in minutes(total elapsed time in minutes) (2 Replies)
Hi all,
System Ubuntu 16.04.3 LTS
i have the following log
INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042
INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies
LEARN ABOUT DEBIAN
ost_datetime
ost::Datetime(3) Library Functions Manual ost::Datetime(3)NAME
ost::Datetime -
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
SYNOPSIS
#include <numbers.h>
Inherits ost::Date, and ost::Time.
Public Member Functions
Datetime (time_t tm)
Datetime (tm *dt)
Datetime (const char *str, size_t size=0)
Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)
Datetime ()
virtual ~Datetime ()
char * getDatetime (char *buffer) const
time_t getDatetime (void) const
bool isValid (void) const
Datetime & operator= (const Datetime datetime)
Datetime & operator+= (const Datetime &datetime)
Datetime & operator-= (const Datetime &datetime)
Datetime & operator+= (const Time &time)
Datetime & operator-= (const Time &time)
int operator== (const Datetime &)
int operator!= (const Datetime &)
int operator< (const Datetime &)
int operator<= (const Datetime &)
int operator> (const Datetime &)
int operator>= (const Datetime &)
bool operator! () const
String strftime (const char *format) const
Additional Inherited Members
Detailed Description
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
This is then manipulated in several forms and may be exported as needed.
Author:
Marcelo Dalmas mad@brasmap.com.br Integer based time class.
Constructor & Destructor Documentation
ost::Datetime::Datetime (time_ttm)
ost::Datetime::Datetime (tm *dt)
ost::Datetime::Datetime (const char *str, size_tsize = 0)
ost::Datetime::Datetime (intyear, unsignedmonth, unsignedday, inthour, intminute, intsecond)
ost::Datetime::Datetime ()
virtual ost::Datetime::~Datetime () [virtual]
Member Function Documentation
char* ost::Datetime::getDatetime (char *buffer) const
time_t ost::Datetime::getDatetime (void) const
bool ost::Datetime::isValid (void) const
Reimplemented from ost::Date.
bool ost::Datetime::operator! () const
Reimplemented from ost::Date.
int ost::Datetime::operator!= (const Datetime &)
Datetime& ost::Datetime::operator+= (const Datetime &datetime)
Datetime& ost::Datetime::operator+= (const Time &time)
Datetime& ost::Datetime::operator-= (const Datetime &datetime)
Datetime& ost::Datetime::operator-= (const Time &time)
int ost::Datetime::operator< (const Datetime &)
int ost::Datetime::operator<= (const Datetime &)
Datetime& ost::Datetime::operator= (const Datetimedatetime)
int ost::Datetime::operator== (const Datetime &)
int ost::Datetime::operator> (const Datetime &)
int ost::Datetime::operator>= (const Datetime &)
String ost::Datetime::strftime (const char *format) const
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Datetime(3)