Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] treating the time right in the schema

Subject: perfsonar development work

List archive

Re: [pS-dev] treating the time right in the schema


Chronological Thread 
  • From: Roman Lapacz <>
  • To: "Jeff W. Boote" <>
  • Cc: , maxim <>,
  • Subject: Re: [pS-dev] treating the time right in the schema
  • Date: Mon, 10 Dec 2007 12:21:37 +0100

Jeff W. Boote wrote:
Roman Lapacz wrote:
Jeff W. Boote wrote:
My simplistic approach was going to be to support something like this for current time parameters:

<nmwg:parameter name="startTime" type="nmtime">
<nmtm:time> <!-- see nmtime.rnc --> </nmtm:time>
</nmwg:parameter>
Hi,

java ma service already supports something like this:

<nmwg:parameter name="startTime">
<nmtm:time type="ISO" value="2007-08-10T10:40:00Z"/>
</nmwg:parameter>
<nmwg:parameter name="endTime">
<nmtm:time type="ISO" value="2007-08-10T11:45:00Z"/>
</nmwg:parameter>


I agree with you that we should start using nmtm time element(s).

So, are you just using the type of the child element to determine if you should look for the 'type' attribute of parameter? (I know you use 'type' for "unix" at least...)

I use the type of time element to know the format of value attribute.

examples for unix type:

<nmwg:parameter name="endTime">
<nmtm:time type="unix" value="1197285497"/>
</nmwg:parameter>

or

<nmwg:parameter name="startTime">1186735200</nmwg:parameter>


That second example is default one (unix type is default so you don't have to use time element ... but of course you can)


Roman




Archive powered by MHonArc 2.6.16.

Top of Page