# Timestamps

**URL:** <https://forum.getodk.org/t/timestamps/270>\
**Category:** Support\
**Created:** [February 3, 2011, 7:53am UTC](https://forum.getodk.org/t/timestamps/270 "2011-02-03T07:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Roberts1](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@Steve\_Roberts1](https://forum.getodk.org/u/Steve_Roberts1)\
**Post date:** [February 3, 2011, 7:53am UTC](https://forum.getodk.org/t/timestamps/270/1 "2011-02-03T07:53:35Z")

</div>

I'm trying to use the timestamp stuff described here  
[https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema](https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema)

- - A timestamp\* of when form entry was started
- - A timestamp\* of when form entry ended
- - See the 'ID Formatting' Section

with this example: (I integrated this into my schema)

```
   <instance>
      <data xmlns:orx="http://openrosa.org/xforms/metadata"

            id="example.org:myFormId"
            version="1" uiVersion="1" >
        <orx:meta>
	<orx:timeStart/>
	<orx:timeEnd/>
	<orx:instanceID/>

    </orx:meta>

```

....

but no timestamps are in the output.

Is this the way it is supported in Collect?

-steve-

---

<div class="post-metadata">

**Author:** ![Andrew\_Marder1](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@Andrew\_Marder1](https://forum.getodk.org/u/Andrew_Marder1)\
**Post date:** [February 3, 2011, 2:44pm UTC](https://forum.getodk.org/t/timestamps/270/2 "2011-02-03T14:44:13Z")

</div>

Hi Steve,

You need some bindings for those nodes, check out the Widgets XForm  
that Yaw sent out, it's a very good example and I think it does start  
and end times.

Andrew

> **···**
>
> On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: \> I'm trying to use the timestamp stuff described here \> https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema \> \> - A timestamp\* of when form entry was started \> - A timestamp\* of when form entry ended \> - See the 'ID Formatting' Section \> \> with this example: (I integrated this into my schema) \> \> \> \> \> id="example.org:myFormId" \> version="1" uiVersion="1" \> \> \> \> \> \> \> \> \> .... \> \> \> \> \> but no timestamps are in the output. \> \> Is this the way it is supported in Collect? \> \> -steve- \> \> \> \> \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Steve\_Roberts1](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@Steve\_Roberts1](https://forum.getodk.org/u/Steve_Roberts1)\
**Post date:** [February 3, 2011, 11:07pm UTC](https://forum.getodk.org/t/timestamps/270/3 "2011-02-03T23:07:06Z")

</div>

Thanks Andrew (and Yaw),

I did glean enough from those examples to capture the timestamps. Of course  
one thing leads to another. 🙂  
In my application I see it set up like this:

|   
|  
|  
|   
|\_\_\_  
| v   
^ v  
| v   
| v  
| v  
^ v  
| v  
| v   
|_\<_|  
|  
|

So now I'm able to know when I started the data collection session and end  
it but what I really need is to get a time stamp every time I answer  
question 8. (Actually it would suffice to know when I end of each iteration  
the "MainLoop". Rather than coming back to this well for every question I  
have I was hoping I could find some information on the javarosa site. For  
example it appears that jr:preload must be what does the magic. So I was  
hoping to find these "jr:" functions/classes and was hoping for something  
like "jr:loadnow" (Then I would load the current time in a hidden field.)  
Anyway I couldn't find anything on the javarosa site. (And while it must be  
there couldn't even find evidence of jr:preload other than in the  
examples.) Is what I'm trying to do possible and can someone point me to  
the functions that support it?

As you see I'm looking at more than surveys but trying to use this  
technology to also monitor/record events.

-steve-

> **···**
>
> On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote:
> 
> > Hi Steve,
> > 
> > You need some bindings for those nodes, check out the Widgets XForm  
> > that Yaw sent out, it's a very good example and I think it does start  
> > and end times.
> > 
> > Andrew
> > 
> > On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts [steve@roberts.org](mailto:steve@roberts.org) wrote:
> > 
> > > I'm trying to use the timestamp stuff described here  
> > > [https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema](https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema)
> > > 
> > > - A timestamp\* of when form entry was started  
> > > - A timestamp\* of when form entry ended  
> > > - See the 'ID Formatting' Section
> > > 
> > > with this example: (I integrated this into my schema)
> > > 
> > > ```
> > > <instance>
> > > <data xmlns:orx="http://openrosa.org/xforms/metadata"
> > > 
> > > id="example.org:myFormId"
> > > version="1" uiVersion="1" >
> > > <orx:meta>
> > > <orx:timeStart/>
> > > <orx:timeEnd/>
> > > <orx:instanceID/>
> > > 
> > > </orx:meta>
> > > 
> > > ```
> > > 
> > > ....
> > > 
> > > but no timestamps are in the output.
> > > 
> > > Is this the way it is supported in Collect?
> > > 
> > > -steve-
> > > 
> > > --  
> > > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)[opendatakit%2Bunsubscribe@googlegroups.com](mailto:opendatakit%2Bunsubscribe@googlegroups.com)  
> > > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > --  
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)[opendatakit%2Bunsubscribe@googlegroups.com](mailto:opendatakit%2Bunsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)

---

<div class="post-metadata">

**Author:** ![Brian\_DeRenzi](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Brian\_DeRenzi](https://forum.getodk.org/u/Brian_DeRenzi)\
**Post date:** [February 3, 2011, 11:28pm UTC](https://forum.getodk.org/t/timestamps/270/4 "2011-02-03T23:28:30Z")

</div>

To my knowledge, there is currently no support for per-question timestamps.

Brian

> **···**
>
> On Thu, Feb 3, 2011 at 3:07 PM, Steve Roberts wrote: \> Thanks Andrew (and Yaw), \> \> I did glean enough from those examples to capture the timestamps. Of course \> one thing leads to another. :-) \> In my application I see it set up like this: \> \> | \> | \> | \> | \> |\_\_\_ \> | v \> ^ v \> | v \> | v \> | v \> ^ v \> | v \> | v \> |\_\<\_| \> | \> | \> \> So now I'm able to know when I started the data collection session and end \> it but what I really need is to get a time stamp every time I answer \> question 8. (Actually it would suffice to know when I end of each iteration \> the "MainLoop". Rather than coming back to this well for every question I \> have I was hoping I could find some information on the javarosa site. For \> example it appears that jr:preload must be what does the magic. So I was \> hoping to find these "jr:" functions/classes and was hoping for something \> like "jr:loadnow" (Then I would load the current time in a hidden field.) \> Anyway I couldn't find anything on the javarosa site. (And while it must be \> there couldn't even find evidence of jr:preload other than in the \> examples.) Is what I'm trying to do possible and can someone point me to \> the functions that support it? \> \> As you see I'm looking at more than surveys but trying to use this \> technology to also monitor/record events. \> \> -steve- \> \> \> \> \> On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote: \>\> \>\> Hi Steve, \>\> \>\> You need some bindings for those nodes, check out the Widgets XForm \>\> that Yaw sent out, it's a very good example and I think it does start \>\> and end times. \>\> \>\> Andrew \>\> \>\> On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: \>\> \> I'm trying to use the timestamp stuff described here \>\> \> https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema \>\> \> \>\> \> - A timestamp\* of when form entry was started \>\> \> - A timestamp\* of when form entry ended \>\> \> - See the 'ID Formatting' Section \>\> \> \>\> \> with this example: (I integrated this into my schema) \>\> \> \>\> \> \>\> \> \> \> \>\> \> \>\> \> id="example.org:myFormId" \>\> \> version="1" uiVersion="1" \> \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> .... \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> but no timestamps are in the output. \>\> \> \>\> \> Is this the way it is supported in Collect? \>\> \> \>\> \> -steve- \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> \>\> \> -- \>\> \> Post: opendatakit@googlegroups.com \>\> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \>\> \> Options: http://groups.google.com/group/opendatakit?hl=en \>\> \> \>\> \>\> -- \>\> Post: opendatakit@googlegroups.com \>\> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \>\> Options: http://groups.google.com/group/opendatakit?hl=en \> \> -- \> Post: opendatakit@googlegroups.com \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \> Options: http://groups.google.com/group/opendatakit?hl=en \>

---

<div class="post-metadata">

**Author:** ![Brian\_DeRenzi](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Brian\_DeRenzi](https://forum.getodk.org/u/Brian_DeRenzi)\
**Post date:** [April 26, 2011, 8:36pm UTC](https://forum.getodk.org/t/timestamps/270/5 "2011-04-26T20:36:55Z")

</div>

Hi Greg,

That's correct. There is still no support for per-question timestamps.  
To my knowledge that is not currently on the roadmap, but if someone  
wanted to take it on, that'd be great!

Brian

> **···**
>
> On Tue, Apr 26, 2011 at 12:11 PM, GregM wrote: \> Is this still the case? \> \> Is there no support for per-question timestamps? \> \> Greg \> \> On Feb 3, 7:28 pm, Brian DeRenzi wrote: \>\> To my knowledge, there is currently no support for per-question timestamps. \>\> \>\> Brian \>\> \>\> \>\> \>\> \>\> \>\> \>\> \>\> On Thu, Feb 3, 2011 at 3:07 PM, Steve Roberts wrote: \>\> \> Thanks Andrew (and Yaw), \>\> \>\> \> I did glean enough from those examples to capture the timestamps. Of course \>\> \> one thing leads to another. :-) \>\> \> In my application I see it set up like this: \>\> \>\> \> | \>\> \> | \>\> \> | \>\> \> | \>\> \> |\_\_\_ \>\> \> | v \>\> \> ^ v \>\> \> | v \>\> \> | v \>\> \> | v \>\> \> ^ v \>\> \> | v \>\> \> | v \>\> \> |\_\<\_| \>\> \> | \>\> \> | \>\> \>\> \> So now I'm able to know when I started the data collection session and end \>\> \> it but what I really need is to get a time stamp every time I answer \>\> \> question 8. (Actually it would suffice to know when I end of each iteration \>\> \> the "MainLoop". Rather than coming back to this well for every question I \>\> \> have I was hoping I could find some information on the javarosa site. For \>\> \> example it appears that jr:preload must be what does the magic. So I was \>\> \> hoping to find these "jr:" functions/classes and was hoping for something \>\> \> like "jr:loadnow" (Then I would load the current time in a hidden field.) \>\> \> Anyway I couldn't find anything on the javarosa site. (And while it must be \>\> \> there couldn't even find evidence of jr:preload other than in the \>\> \> examples.) Is what I'm trying to do possible and can someone point me to \>\> \> the functions that support it? \>\> \>\> \> As you see I'm looking at more than surveys but trying to use this \>\> \> technology to also monitor/record events. \>\> \>\> \> -steve- \>\> \>\> \> On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote: \>\> \>\> \>\> Hi Steve, \>\> \>\> \>\> You need some bindings for those nodes, check out the Widgets XForm \>\> \>\> that Yaw sent out, it's a very good example and I think it does start \>\> \>\> and end times. \>\> \>\> \>\> Andrew \>\> \>\> \>\> On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: \>\> \>\> \> I'm trying to use the timestamp stuff described here \>\> \>\> \>https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema \>\> \>\> \>\> \> - A timestamp\* of when form entry was started \>\> \>\> \> - A timestamp\* of when form entry ended \>\> \>\> \> - See the 'ID Formatting' Section \>\> \>\> \>\> \> with this example: (I integrated this into my schema) \>\> \>\> \>\> \> \>\> \>\> \> \> \>\> \>\> \> id="example.org:myFormId" \>\> \>\> \> version="1" uiVersion="1" \> \>\> \>\> \> \>\> \>\> \> \>\> \>\> \> \>\> \>\> \> \>\> \>\> \>\> \> \>\> \>\> \> .... \>\> \>\> \> \>\> \>\> \> \>\> \>\> \>\> \> but no timestamps are in the output. \>\> \>\> \>\> \> Is this the way it is supported in Collect? \>\> \>\> \>\> \> -steve- \>\> \>\> \>\> \> -- \>\> \>\> \> Post: opendatakit@googlegroups.com \>\> \>\> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \>\> \>\> \> Options:http://groups.google.com/group/opendatakit?hl=en \>\> \>\> \>\> -- \>\> \>\> Post: opendatakit@googlegroups.com \>\> \>\> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \>\> \>\> Options:http://groups.google.com/group/opendatakit?hl=en \>\> \>\> \> -- \>\> \> Post: opendatakit@googlegroups.com \>\> \> Unsubscribe: opendatakit+unsubscribe@googlegroups.com \>\> \> Options:http://groups.google.com/group/opendatakit?hl=en
