Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Clukey #1
Can someone test this code on a mac?
I created this function to convert a standard javascript date into RFC 3339
format, but I don't have a mac and I'm not sure if the Date() function return
exactly the same so could someone check this for me. Thanks
The format should be:
{ date }T{ time }{time zone offset (Z if GTM)}
yyyy-mm-ddThh:mm:ss?hh:mm
Thanks,
function rfc3339() {
var d = new Date();
var ds = d.toString();
var time = ds.substring(ds.indexOf("GMT")-9, ds.indexOf("GMT")-1)
var offset = ds.substring(ds.indexOf("GMT")+3, ds.indexOf("GMT")+8)
offset = offset.substring(0, 3)+":"+offset.substring(3)
if (offset == "+00:00") {
offset = "Z";
}
var month = d.getMonth()+1;
var day = d.getDate();
if (month < 10) {
month = "0"+month;
}
if (day < 10) {
day = "0"+day;
}
return d.getFullYear()+"-"+month+"-"+day+"T"+time+offset;
}
Clukey Guest
-
Test::Unit non-auto-run test case?
I'm getting a handle on the Test::Unit library, and the automatically-running test case example was extremely simple to get running, but now I want... -
Test::Unit -- multiple errors in test method ???
Hi ! I have been writing some unit tests with Test::Unit. I've noted that when an assertion fails in a test method, the remaining assertions... -
Method test::unit::TestSuite#<<(test)
Hi, I suggest to change the definition of this method slightly: current: # Adds the test to the suite. def <<(test) @tests << test end -
How to test SMTP Email code with development computer only running IIS5.0
Please give me some ideas on how to setup the ability to test System.Web.Mail code to send emails using just my development computer, Win2000Pro OS... -
perl code to test my C based CGI application
Already tried cgi newsgroup to no avail. I'm a Perl begginner, and it's starting to look like Perl is the best way to do this. I have a C based... -
rflulling #2
Re: Can someone test this code on a mac?
I can and might even have use of. However Im not sure how to add this code. Me
and javascript don't get along very well. Weird and that I administer a server
too... Anyway, Id be happy to help you, if you don't mind giving me a quick
blurb on how to set this up, or Put the code in sample page, in code form.
I did once get a hit counter working... and it seemed to lag to much. Ended up
just changing the hits on my own with each update. lol
rflulling Guest
-
Clukey #3
Re: Can someone test this code on a mac?
Just download and install this ( [url]http://stevenclukey.com/rfc3339/[/url] ), then go to
Commands --> RFC 3339 and see if the date is in this format:
{ date }T{ time }{time zone offset (Z if GTM)}
yyyy-mm-ddThh:mm:ss?hh:mm
Thanks for the help
Clukey Guest
-
rflulling #4
Re: Can someone test this code on a mac?
I installed it and the command "RFC 3339" does not come up.
Sorry I know this is not a result you were hoping for. I tried, "Edit Command List" and all I had to add was "Display External Files..."
rflulling Guest



Reply With Quote

