HP Visualize c160L HP-UX DMI 2.0 Developer's Guide: HP-UX/HP 9000 Computers, - Page 74

DmiTimestamp

Page 74 highlights

Management Interface Data Structures DMI Data Structures DmiTimestamp This data structure describes the time format used by DMI. The format of the time block is a 28-octet displayable string with ISO 8859-1 encoding. Each element is one or more printable characters. For example, Wednesday May 25, 1994 at 1:30:15 PM EDT is represented as: 19940525133015.000000-300 A seconds value of 60 is used for leap seconds. The offset from UTC (Coordinated Universal Time) is the number of minutes west (negative number) or east offset from UTC. Values are zero-padded. If a value is not supplied for a field, each character in the field must be replaced with asterisk ('*') characters. The DMI Server is not required to check the contents of this string for validity. Table 8-33 DmiTimestamp Field Name year month day hour minutes seconds dot microSeconds plusOrMinus utcOffset padding Description The year The month ('1'..'12') The day of the month ('1'..'31') The hour of the day ('0'..'23') The minutes ('0'..'59') The seconds ('0'..'60') A dot ('.'} MicroSeconds ('0'..'999999') '+' for east, or '-' west of UTC Minutes ('0'..'720') from UTC Unused padding for 4-byte alignment typedef struct DmiTimestamp { char year [4]; char month [2]; char day [2]; char hour [2]; char minutes [2]; char seconds [2]; char dot; char microSeconds [6]; char plusOrMinus; char utcOffset [3]; char padding [3]; } DmiTimestamp_t; 74 Chapter 8

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

74
Chapter 8
Management Interface Data Structures
DMI Data Structures
DmiTimestamp
This data structure describes the time format used by DMI. The format
of the time block is a 28-octet displayable string with ISO 8859-1
encoding. Each element is one or more printable characters.
For example, Wednesday May 25, 1994 at 1:30:15 PM EDT is
represented as:
19940525133015.000000-300
A seconds value of 60 is used for leap seconds.
The offset from UTC (Coordinated Universal Time) is the number of
minutes west (negative number) or east offset from UTC.
Values are zero-padded. If a value is not supplied for a field, each
character in the field must be replaced with asterisk ('*') characters.
The DMI Server is not required to check the contents of this string for
validity.
typedef struct DmiTimestamp {
char year
[4];
char month
[2];
char day
[2];
char hour
[2];
char minutes
[2];
char seconds
[2];
char dot;
char microSeconds [6];
char plusOrMinus;
char utcOffset
[3];
char padding
[3];
} DmiTimestamp_t;
Table 8-33
DmiTimestamp
Field Name
Description
year
The year
month
The month ('1'..'12')
day
The day of the month ('1'..'31')
hour
The hour of the day ('0'..'23')
minutes
The minutes ('0'..'59')
seconds
The seconds ('0'..'60')
dot
A dot ('.'}
microSeconds
MicroSeconds ('0'..'999999')
plusOrMinus
'+' for east, or '-' west of UTC
utcOffset
Minutes ('0'..'720') from UTC
padding
Unused padding for 4-byte alignment