Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Hello All,
Need a shell script to sort entries in a file by date and time. Below are the entries in the file, i need to sort it first by the date and then time
Note :- Date is in MM/DD/YY format and date comes as the 6th & time comes on 7th coloumns respectively.
150 pbnawldb001-b... (10 Replies)
I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk.
I tried
This is how each line of the file looks like, different date and time in this format
Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th
... (2 Replies)
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Input file:
100%ABC2 3.44E-12 USA
A2M%H02579 0E0 UK
100%ABC2 5.34E-8 UK
100%ABC2 3.25E-12 USA
A2M%H02579 5E-45 UK
Output file:
100%ABC2 3.44E-12 USA
100%ABC2 3.25E-12 USA
100%ABC2 5.34E-8 UK
A2M%H02579 0E0 UK
A2M%H02579 5E-45 UK
Code try:
sort -k1,1 -g -k2 -r input.txt... (2 Replies)
Hi Folks,
My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST.
IST time leads 9:30 mins to EDT. and i wrote something like below.
... (6 Replies)
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
Hi,
i had a data block (coming from pipe from other codes) as:
H YF_CO.dat 77164 11/17/2013 04:00:02 731374590.96 1 1 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77164 11/17/2013 04:00:07 731374590.96 1 4 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77178 ... (5 Replies)
Discussion started by: pr5439
5 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)