|
Hello! Yes, you're right - such format is used in SCORM 2004 standard. However, I didn't manage to find a package to show this clearly, as they whether show time in the format you've mentioned, or just show "P" instead of time (which actually tells that it's SCORM 2004 format, but without data). I'm attaching a screenshot from edited pipwerks wrapper example - it sends actual time. The format itself is described in SCORM 2004 standard: "SCORMĀ® 2004 3rd Edition Run-Time Environment (RTE) Version 1.0" document, paragraph 4.1.1.7, timeinterval data type.
Actually, back-compatibility is not a problem as the function I've introduced checks whether first symbol of date/time string is 'P', which whould mean that this is SCORM 2004 format. In other case, it just returns the input string without any changes. cool - we really need to display the time consistently in the reports for both SCORM 1.2 and 2004 objects - if you could add to your scorm_format_date_time function to make it translate SCORM 1.2 times in the same way it translates the 2004 ones that would be great!
Dan, I made changes as you've proposed: now this function suggests that given string is of SCORM 1.2 format if the first character of string is not 'P', and does corresponding conversion. I also improved SCORM 2004 converter a little, concerning convertion of seconds.
I made another patch, scorm_time2.patch, you'll have to reverse-apply first one first as the second one is based on current cvs. Those regexp's might be difficult to understand, but I've tried to test every case so I hope it works right Some time has passed - but to no avail, unfortunately
thanks for the unit tests - we don't have any funding to work on SCORM at the moment, so it's done in our own time - Unfortunately for you SCORM 2004 priority for us is lower than the other stuff as we know the SCORM 2004 stuff isn't good.
We are actively looking for funding and have had a range of people who want the work done, but no-one has been able to provide any funding to allow us to get into it yet. thanks! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
thanks!