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: maxim <>
  • To: "'Jeff W. Boote'" <>,
  • Cc:
  • Subject: RE: [pS-dev] treating the time right in the schema
  • Date: Thu, 06 Dec 2007 18:57:45 -0600

sorry, missed this one...

>
> My simplistic approach was going to be to support something
> like this for current time parameters:
>
> <nmwg:parameter name="startTime" type="nmtime">

hmm, there is no type attribute in the nmbase schema.
there is value attribute but then you cant include anyElement inside.

> <nmtm:time> <!-- see nmtime.rnc --> </nmtm:time>
> </nmwg:parameter>
>

time element is very expressive and it has already type, start/end, and
timestamp
capability so basically you need only one time parameter anywhere:

<nmwg:parameter name="time">
<nmtm:time type="unix">
<nmtm:start value="1983838444"/>
<nmtm:end inclusive="yes" value="1983838444"/>
</nmtm:time>
</nmwg:parameter>
------


> For new parameters of type 'time' the 'type' attribute would
> not be needed because the child element type could be
> directly put in the rnc file along with the parameter name
> enumerations.
>
> I realize this does not add a bunch of functionality over
> type = "unix" for something as simple as selection. It does
> however localize the time handling, and this simple case
> could be handled using the same syntax rules/code as the more
> complex ones.
>
> jeff

yes, thats why I was so pursvaisive...I'd like to have one place in API
which knows how to handle time.

--Maxim





Archive powered by MHonArc 2.6.16.

Top of Page