[Building Sakai] How to convert Sakai Timestamp value (20140424174514189 ) into date and time

Steve Swinsburg steve.swinsburg at gmail.com
Sun Apr 27 05:13:37 PDT 2014


Hi,

20140424 is yyyyMMdd
174514189 is HHmmssSSS

The 189 is milliseconds.

cheers,
Steve


On Sun, Apr 27, 2014 at 10:09 PM, Jehan Badshah <jehan.badshah at nu.edu.pk>wrote:

> How to interpret it *20140424*174514189 ?
>
> In the above string
> if date is 20140424
> and time is 174514 (what is hour, minute and second)
>
>  What is mean of remaining 3 digits189
>
> Thanks
>
>
> On Sun, Apr 27, 2014 at 3:23 PM, Steve Swinsburg <
> steve.swinsburg at gmail.com> wrote:
>
>> Hi,
>>
>> Its just a string with date first, then time, format it via
>> SimpleDateFormat:
>> http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
>>
>> cheers,
>> Steve
>>
>>
>>
>> On Sun, Apr 27, 2014 at 6:31 PM, Jehan Badshah <jehan.badshah at nu.edu.pk>wrote:
>>
>>> Dear All
>>>
>>>
>>> How to convert 20140424174514189 into date and time
>>>
>>> Thanks
>>>
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to
>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>>> "unsubscribe"
>>>
>>
>>
>
>
> --
>
> Regards
> ----------------------------------------------------
> Jehan Badshah | Team Lead
> Sakai Learning and Teaching Environment (SLATE)
> URL: http://slate.nu.edu.pk,
> National University of Computer and Emerging Sciences
> UAN: +92 (0) 51 - 111 128 128 ext 352 and 344
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140427/d8987e62/attachment.html 


More information about the sakai-dev mailing list