There is no "EPOCH" format within DX.  The DX data model can represent
time-varying data via a time series (group), for example.  Each series
member has a float tag, whose semantics are up to the user (e.g., nsec
since the explosion or fortnights since you started collecting data).  In
your case, you can Import hour, minute, second and fractional second values
(or read the time tag string and parse it within DX) and use Compute to
create a float for time of day, which can then be the series value.

One of the data access APIs supported by Import is CDF, which has an
optional "EPOCH" notation.  I wrote a tool about 6 years ago that parses
the CDF EPOCH into a form more usable within DX.  There have been
occasional references to that within some DX documentation.  Was that what
you had seen as a DX EPOCH value?

--------------------------
Lloyd A. Treinish
Deep Computing Institute
IBM Thomas J. Watson Research Center
P. O. Box 704
Yorktown Heights, NY 10598
914-784-5038 (voice)
914-784-7667 (facsimile)
[EMAIL PROTECTED]
http://www.research.ibm.com/people/l/lloydt/


Jérôme Margat <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 03/09/2000
05:09:10 AM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   "[email protected]"
      <[email protected]>
cc:
Subject:  [opendx-users] EPOCH format



Hi,

I intend to use DX to plot some systems activities in real time. To do
it, I use the 'sar' command which give me this kind of output :

09:35:09  %usr  %sys %intr  %wio %idle %sbrk  %wfs %wswp %wphy %wgsw
%wfif
09:35:39    16     6     1     1    76     0    95     0     0     5
0
09:36:09    14     4     1     0    81     0    56     0     0    44
0
09:36:39    18     4     1     1    77     0    95     0     0     5
0
09:37:09    24     4     1     1    69     0    50    50     0     0
0
09:37:39    23     6     1     2    68     0    96     3     0     1
0
09:38:10    25     5     1     3    67     0   100     0     0     0
0


I'd like to plot '%usr' versus 'time' but I don't know how to convert
something like 09:35:39 to the EPOCH format needed by DX.

Can anybody help me ?


Regards,

Jerome Margat



Reply via email to