Timestamp returning date in web api call for data=

vlaue set
et

So what do we want here=2C a full timestamp as in numbers=2C or a full ISO =
8601 string? We have had it likes this for several releases now=2C and it h=
as the potential to break external users.
I'm not too happy with the name "timestamp"=2C but I guess that's minor..=
=0A=
=0A=

···

To: sunbiz@gmail.com
CC: knutst@gmail.com=3B rajibs123@yahoo.com=3B dhis2-devs@lists.launchpad.n=
--
Morten=0A=

On Tue=2C Nov 19=2C 2013 at 12:08 PM=2C Saptarshi Purkayastha <sunbiz@gmail= .com> wrote:
=0A=
=0A=
=0A=
=0A=
=0A=
Rajib probably meant for this Web API call.
Trying out the Web API Call mentioned in the doc on "Reading Large bulks of=
data value"
http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=3DpBOMPrpg1QX&data=
Set=3DBfMAe6Itzgt&startDate=3D2013-01-01&endDate=3D2013-01-31&orgUnit=3DYuQ=
RtpLP10I&orgUnit=3DvWbkYPRmKyS&children=3Dtrue
=0A=
=0A=

Yes=2C I can see the timestamp lists only date and I agree would be good th=
at its a full timestamp instead of date only.

---
Regards=2C
Saptarshi PURKAYASTHA

From: knutst@gmail.com
=0A=
=0A=
Date: Tue=2C 19 Nov 2013 10:13:57 +0100
To: rajibs123@yahoo.com
CC: dhis2-devs@lists.launchpad.net
=0A=
=0A=
Subject: Re: [Dhis2-devs] Timestamp returning date in web api call for data=
vlaue set

Hi Rajib=2C
Looking at the following query=2C there is in fact no dataelement lastupdat=
ed for dataValueSets=2C perhaps you are referring to completedDate?=0A=
=0A=
=0A=
=0A=

http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=3DpBOMPrpg1QX&peri=
od=3D201201&orgUnit=3DDiszpKrYNg8=0A=
=0A=
=0A=
=0A=

Knut

=0A=
=0A=
On Mon=2C Nov 18=2C 2013 at 1:28 PM=2C Rajib Sengupta <rajibs123@yahoo.com>= wrote:
=0A=
=0A=
=0A=
=0A=
Hello=2C
=0A=
=0A=
=0A=
=0A=
We=0A=
are using DHIS2 2.13 as the backend system for Kolkata Medical =0A=
Emergency System. The concept note of the project can be found here: =0A=
http://www.missionarogya.org/p/kmes.html. The online portal is using the we=
b-apis

The datavaluesets web-api calls are returning the lastupdated timestamp for=
the dataelement. But it returns it as a date instead of a timestamp as fol=
lowing: timestamp=3D"2013-10-16"
=0A=
=0A=
=0A=
=0A=

Example calls from the demo:=20
http://apps.dhis2.org/demo/api/dataValueSets?dataSet=3DpBOMPrpg1QX&period=
=3D201201&orgUnit=3DDiszpKrYNg8
=0A=
=0A=
=0A=
=0A=

http://apps.dhis2.org/demo/api/dataValueSets?dataSet=3DpBOMPrpg1QX&startDat=
e=3D2013-10-15&endDate=3D2013-10-17&orgUnit=3DDiszpKrYNg8&orgUnit=3DDiszpKr=
YNg8&children=3Dfalse=0A=
=0A=
=0A=
=0A=

=0A=
=0A=
=0A=
=0A=
We will really appreciate if this can be solved.
=0A=
=0A=
=0A=
=0A=
Thanks=2C=0A=
=0A=
=0A=
=0A=
Rajib

_______________________________________________
=0A=
=0A=
=0A=
=0A=
=0A=
Mailing list: https://launchpad.net/~dhis2-devs
=0A=
Post to : dhis2-devs@lists.launchpad.net
=0A=
Unsubscribe : https://launchpad.net/~dhis2-devs
=0A=
More help : https://help.launchpad.net/ListHelp
=0A=

--=20
Knut StaringDept. of Informatics=2C University of Oslo+4791880522=0A=
=0A=
http://dhis2.org=0A=
=0A=
=0A=

_______________________________________________=0A=
Mailing list: https://launchpad.net/~dhis2-devs=0A=
Post to : dhis2-devs@lists.launchpad.net=0A=
Unsubscribe : https://launchpad.net/~dhis2-devs=0A=
More help : https://help.launchpad.net/ListHelp =0A=

_______________________________________________
=0A=
Mailing list: https://launchpad.net/~dhis2-devs
=0A=
Post to : dhis2-devs@lists.launchpad.net
=0A=
Unsubscribe : https://launchpad.net/~dhis2-devs
=0A=
More help : https://help.launchpad.net/ListHelp
=0A=

                 =

--_205a969b-98d6-43e6-a360-7d64ae11a248_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>I feel it would be good as a ful=
l ISO 8601 string.<br>2013-11-19T14:01:54 with or without the timezone.<br>=
<br>Surprisingly=2C in the call that I pasted in my last email=2C for 3 dat=
avalue there is no timestamp attribute.<br>Also the link which Knut sent do=
esn't have timestamp attribute. It will be good if they are consistent and =
with timestamp.<br><br>I like the lastupdated name instead of timestamp. Th=
is also allows to follow-up if the values have been changed or not since th=
e last time they were read.<br><br>---<br>Regards=2C<br>Saptarshi PURKAYAST=
HA<br><br><div><hr id=3D"stopSpelling">From: mortenoh@gmail.com<br>Date: Tu=
e=2C 19 Nov 2013 12:15:41 +0100<br>Subject: Re: [Dhis2-devs] Timestamp retu=
rning date in web api call for datavlaue set<br>To: sunbiz@gmail.com<br>CC:=
knutst@gmail.com=3B rajibs123@yahoo.com=3B dhis2-devs@lists.launchpad.net<=

<br><div dir=3D"ltr">So what do we want here=2C a full timestamp as in n=

umbers=2C or a full ISO 8601 string? We have had it likes this for several =
releases now=2C and it has the potential to break external users.<div><br><=
/div><div>I'm not too happy with the name "timestamp"=2C but I guess that's=
minor..</div>=0A=
=0A=
</div><div class=3D"ecxgmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"=

--<br>Morten</div></div>=0A=

<br><br><div class=3D"ecxgmail_quote">On Tue=2C Nov 19=2C 2013 at 12:08 PM=
=2C Saptarshi Purkayastha <span dir=3D"ltr">&lt=3B<a href=3D"mailto:sunbiz@=
gmail.com" target=3D"_blank">sunbiz@gmail.com</a>&gt=3B</span> wrote:<br><b=
lockquote class=3D"ecxgmail_quote" style=3D"border-left:1px #ccc solid=3Bpa=
dding-left:1ex=3B">=0A=
=0A=
=0A=
=0A=
=0A=
<div><div dir=3D"ltr">Rajib probably meant for this Web API call.<br>Trying=
out the Web API Call mentioned in the doc on "Reading Large bulks of data =
value"<br><a href=3D"http://apps.dhis2.org/demo/api/dataValueSets.xml?dataS=
et=3DpBOMPrpg1QX&amp=3BdataSet=3DBfMAe6Itzgt&amp=3BstartDate=3D2013-01-01&a=
mp=3BendDate=3D2013-01-31&amp=3BorgUnit=3DYuQRtpLP10I&amp=3BorgUnit=3DvWbkY=
PRmKyS&amp=3Bchildren=3Dtrue" target=3D"_blank">http://apps.dhis2.org/demo/=
api/dataValueSets.xml?dataSet=3DpBOMPrpg1QX&amp=3BdataSet=3DBfMAe6Itzgt&amp=
=3BstartDate=3D2013-01-01&amp=3BendDate=3D2013-01-31&amp=3BorgUnit=3DYuQRtp=
LP10I&amp=3BorgUnit=3DvWbkYPRmKyS&amp=3Bchildren=3Dtrue</a><br>=0A=
=0A=
<br>Yes=2C I can see the timestamp lists only date and I agree would be goo=
d that its a full timestamp instead of date only.<br><br>---<br>Regards=2C<=

Saptarshi PURKAYASTHA<br><br><div><hr>From: <a href=3D"mailto:knutst@gma=

il.com" target=3D"_blank">knutst@gmail.com</a><br>=0A=
=0A=
Date: Tue=2C 19 Nov 2013 10:13:57 +0100<br>To: <a href=3D"mailto:rajibs123@=
yahoo.com" target=3D"_blank">rajibs123@yahoo.com</a><br>CC: <a href=3D"mail=
to:dhis2-devs@lists.launchpad.net" target=3D"_blank">dhis2-devs@lists.launc=
hpad.net</a><br>=0A=
=0A=
Subject: Re: [Dhis2-devs] Timestamp returning date in web api call for data=
vlaue set<div><div class=3D"h5"><br><br><div dir=3D"ltr">Hi Rajib=2C<div><b=

</div><div><span style=3D"font-family:arial=2Csans-serif=3Bfont-size:12.8=

00000190734863px=3B">Looking at the following query=2C there is in fact no =
dataelement lastupdated for dataValueSets=2C perhaps you are referring to c=
ompletedDate?</span><div style=3D"font-family:arial=2Csans-serif=3Bfont-siz=
e:12.800000190734863px=3B">=0A=
=0A=
=0A=
=0A=
<br></div><div style=3D"font-family:arial=2Csans-serif=3Bfont-size:12.80000=
0190734863px=3B"><a href=3D"http://apps.dhis2.org/demo/api/dataValueSets.xm=
l?dataSet=3DpBOMPrpg1QX&amp=3Bperiod=3D201201&amp=3BorgUnit=3DDiszpKrYNg8" =
target=3D"_blank">http://apps.dhis2.org/demo/api/dataValueSets.xml?dataSet=
=3DpBOMPrpg1QX&amp=3Bperiod=3D201201&amp=3BorgUnit=3DDiszpKrYNg8</a></div>=
=0A=
=0A=
=0A=
=0A=
</div><div style=3D"font-family:arial=2Csans-serif=3Bfont-size:12.800000190=
734863px=3B"><br></div><div style=3D"font-family:arial=2Csans-serif=3Bfont-=
size:12.800000190734863px=3B">Knut</div></div><div><br><br><div>=0A=
=0A=
On Mon=2C Nov 18=2C 2013 at 1:28 PM=2C Rajib Sengupta <span dir=3D"ltr">&lt=
=3B<a href=3D"mailto:rajibs123@yahoo.com" target=3D"_blank">rajibs123@yahoo=
.com</a>&gt=3B</span> wrote:<br><blockquote style=3D"border-left:1px #ccc s=
olid=3Bpadding-left:1ex=3B">=0A=
=0A=
=0A=
=0A=
<div><div style=3D"font-size:12pt=3Bfont-family:HelveticaNeue=2CHelvetica N=
eue=2CHelvetica=2CArial=2CLucida Grande=2Csans-serif=3B">Hello=2C<br><div s=
tyle=3D"font-style:normal=3Bfont-size:16px=3Bbackground-color:transparent=
=3Bfont-family:HelveticaNeue=2CHelvetica Neue=2CHelvetica=2CArial=2CLucida =
Grande=2Csans-serif=3B">=0A=
=0A=
=0A=
=0A=
We=0A=
are using DHIS2 2.13 as the backend system for Kolkata Medical =0A=
Emergency System. The concept note of the project can be found here: =0A=
<a href=3D"http://www.missionarogya.org/p/kmes.html" target=3D"_blank">http=
://www.missionarogya.org/p/kmes.html</a>. The online portal is using the we=
b-apis<br></div><br>The datavaluesets web-api calls are returning the lastu=
pdated timestamp for the dataelement. But it returns it as a date instead o=
f a timestamp as following: timestamp=3D"2013-10-16"<br>=0A=
=0A=
=0A=
=0A=
<br>Example calls from the demo: <br><a href=3D"http://apps.dhis2.org/demo/=
api/dataValueSets?dataSet=3DpBOMPrpg1QX&amp=3Bperiod=3D201201&amp=3BorgUnit=
=3DDiszpKrYNg8" target=3D"_blank">http://apps.dhis2.org/demo/api/dataValueS=
ets?dataSet=3DpBOMPrpg1QX&amp=3Bperiod=3D201201&amp=3BorgUnit=3DDiszpKrYNg8=
</a><br>=0A=
=0A=
=0A=
=0A=
<div><br></div><div style=3D"font-style:normal=3Bfont-size:16px=3Bbackgroun=
d-color:transparent=3Bfont-family:HelveticaNeue=2CHelvetica Neue=2CHelvetic=
a=2CArial=2CLucida Grande=2Csans-serif=3B"><a href=3D"http://apps.dhis2.org=
/demo/api/dataValueSets?dataSet=3DpBOMPrpg1QX&amp=3BstartDate=3D2013-10-15&=
amp=3BendDate=3D2013-10-17&amp=3BorgUnit=3DDiszpKrYNg8&amp=3BorgUnit=3DDisz=
pKrYNg8&amp=3Bchildren=3Dfalse" target=3D"_blank">http://apps.dhis2.org/dem=
o/api/dataValueSets?dataSet=3DpBOMPrpg1QX&amp=3BstartDate=3D2013-10-15&amp=
=3BendDate=3D2013-10-17&amp=3BorgUnit=3DDiszpKrYNg8&amp=3BorgUnit=3DDiszpKr=
YNg8&amp=3Bchildren=3Dfalse</a></div>=0A=
=0A=
=0A=
=0A=
<div style=3D"font-style:normal=3Bfont-size:16px=3Bbackground-color:transpa=
rent=3Bfont-family:HelveticaNeue=2CHelvetica Neue=2CHelvetica=2CArial=2CLuc=
ida Grande=2Csans-serif=3B"><br></div><div style=3D"font-style:normal=3Bfon=
t-size:16px=3Bbackground-color:transparent=3Bfont-family:HelveticaNeue=2CHe=
lvetica Neue=2CHelvetica=2CArial=2CLucida Grande=2Csans-serif=3B">=0A=
=0A=
=0A=
=0A=
We will really appreciate if this can be solved.</div><div style=3D"font-st=
yle:normal=3Bfont-size:16px=3Bbackground-color:transparent=3Bfont-family:He=
lveticaNeue=2CHelvetica Neue=2CHelvetica=2CArial=2CLucida Grande=2Csans-ser=
if=3B"><br></div>=0A=
=0A=
=0A=
=0A=
<div style=3D"font-style:normal=3Bfont-size:16px=3Bbackground-color:transpa=
rent=3Bfont-family:HelveticaNeue=2CHelvetica Neue=2CHelvetica=2CArial=2CLuc=
ida Grande=2Csans-serif=3B">Thanks=2C</div><div style=3D"font-style:normal=
=3Bfont-size:16px=3Bbackground-color:transparent=3Bfont-family:HelveticaNeu=
e=2CHelvetica Neue=2CHelvetica=2CArial=2CLucida Grande=2Csans-serif=3B">=0A=
=0A=
=0A=
=0A=
Rajib</div><div style=3D"font-style:normal=3Bfont-size:16px=3Bbackground-co=
lor:transparent=3Bfont-family:HelveticaNeue=2CHelvetica Neue=2CHelvetica=2C=
Arial=2CLucida Grande=2Csans-serif=3B"><br></div><br></div></div><br>______=
_________________________________________<br>=0A=
=0A=
=0A=
=0A=
=0A=
Mailing list: <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a><br>=0A=
Post to &nbsp=3B &nbsp=3B : <a href=3D"mailto:dhis2-devs@lists.launchpad.ne=
t" target=3D"_blank">dhis2-devs@lists.launchpad.net</a><br>=0A=
Unsubscribe : <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a><br>=0A=
More help &nbsp=3B : <a href=3D"https://help.launchpad.net/ListHelp" target=
=3D"_blank">https://help.launchpad.net/ListHelp</a><br>=0A=
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div>Knu=
t Staring</div><div>Dept. of Informatics=2C&nbsp=3BUniversity of Oslo</div>=
<div><a target=3D"_blank">+4791880522</a></div>=0A=
=0A=
<div><a href=3D"http://dhis2.org" target=3D"_blank">http://dhis2.org</a>=0A=
</div>=0A=
</div>=0A=
<br>_______________________________________________=0A=
Mailing list: <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a>=0A=
Post to : <a href=3D"mailto:dhis2-devs@lists.launchpad.net" target=3D"_=
blank">dhis2-devs@lists.launchpad.net</a>=0A=
Unsubscribe : <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a>=0A=
More help : <a href=3D"https://help.launchpad.net/ListHelp" target=3D"_bl=
ank">https://help.launchpad.net/ListHelp</a></div></div></div> <=
/div></div>=0A=
<br>_______________________________________________<br>=0A=
Mailing list: <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a><br>=0A=
Post to &nbsp=3B &nbsp=3B : <a href=3D"mailto:dhis2-devs@lists.launchpad.ne=
t">dhis2-devs@lists.launchpad.net</a><br>=0A=
Unsubscribe : <a href=3D"https://launchpad.net/~dhis2-devs" target=3D"_blan=
k">https://launchpad.net/~dhis2-devs</a><br>=0A=
More help &nbsp=3B : <a href=3D"https://help.launchpad.net/ListHelp" target=
=3D"_blank">https://help.launchpad.net/ListHelp</a><br>=0A=
<br></blockquote></div><br></div></div> </div></body>
</html>=

--_205a969b-98d6-43e6-a360-7d64ae11a248_--