Is there an AIX command that displays the date mode so I can see if we have universal time code on? There's a vms command to tell you this but I have not been able to find a similar AIX command. (0 Replies)
Hello,
I am trying to figure out a way to convert the timestamps in a dataset from one timezone (which has daylight savings) to UTC.
2009-02-25 23:57:22,000D60727B89,221.16.86.23,SYSTEM1What would be the best way to approach this? (3 Replies)
Hi,
I need to convert a number representing time in UTC seconds to a date. Ex:
3BE0082C --> Oct 31 2001 15:31:08
I have tried the following perl command but it gives a different answer?
$ perl -e 'print scalar localtime(shift), "\n"' 3BE00B2C
Thu Jan 1 03:00:03 1970
Any ideas? Thanks. :) (10 Replies)
I need to convert the given datetime from PST to UTC, i gone through multiple forum examples but everywhere it mentioned about converting the server datetime. So could someone help me on this.
I will be getting arguments for my script in the format of yyyymmddhh (eg:2015101004 - it will be pst),... (4 Replies)
I need away to convert the following GMT date and time value RAW_TME= 042720171530 "mmddccyyhhmm" to Localhost time. In this case it is in central time.
Here is what I came up with but it does not look efficient:
RAW_TME=042720171530
logmm=`echo $RAW_TME | cut -c1-2`
logdd=`echo $RAW_TME |... (4 Replies)
Gents,
Kindly can u help with this.
I would like to get GPS time from UTC
Input
17/11/27 03:13:50:480000
17/11/27 03:12:54:380000
17/11/27 03:14:39:980000
output desired.
17/11/27 03:13:50:480000 1195787648480000
17/11/27 03:12:54:380000 1195787592380000
17/11/27... (6 Replies)
Discussion started by: jiam912
6 Replies
LEARN ABOUT OPENSOLARIS
ftime
ftime(3C) Standard C Library Functions ftime(3C)NAME
ftime - get date and time
SYNOPSIS
#include <sys/timeb.h>
int ftime(struct timeb *tp);
DESCRIPTION
The ftime() function sets the time and millitm members of the timeb structure pointed to by tp. The structure is defined in <sys/timeb.h>
and contains the following members:
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
The time and millitm members contain the seconds and milliseconds portions, respectively, of the current time in seconds since 00:00:00 UTC
(Coordinated Universal Time), January 1, 1970.
The timezone member contains the local time zone. The dstflag member contains a flag that, if non-zero, indicates that Daylight Saving time
applies locally during the appropriate part of the year.
The contents of the timezone and dstflag members of tp after a call to ftime() are unspecified.
RETURN VALUES
Upon successful completion, the ftime() function returns 0. Otherwise -1 is returned.
ERRORS
No errors are defined.
USAGE
For portability to implementations conforming to earlier versions of this document, time(2) is preferred over this function.
The millisecond value usually has a granularity greater than one due to the resolution of the system clock. Depending on any granularity
(particularly a granularity of one) renders code non-portable.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
|ATTRIBUTE TYPE |ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO date(1), time(2), ctime(3C), gettimeofday(3C), timezone(4), attributes(5), standards(5)SunOS 5.11 24 Jul 2002 ftime(3C)