2012-05-27

Blogger ブログ移行用、MovableType 形式のエクスポートデータの日付を変換するツール

最近投稿のタイトルが長くなってきている気がするのだけれど、まあ、表題の通り。


このツールで自動的にしてくれること:
  • 日本標準時(JST)をグリニッジ標準時(GMT)に変換。 (例: 5/5 08:34 → 5/4 23:34)
  • 24 時間制の時刻を 12 時間表記に。 (例: 23:34 → 11:34 PM)
  • 0 時台は 12 時台へ書き換え(Blogger の仕様)。 (例: 0:12 AM → 12:12 AM)

他のブログサービスのブログデータを Blogger へ移行するときに使用する、エクスポートファイル変換ツール MovableType2Blogger へデータを送る前に、こちらで日時変換を行っておくのがいいかと。






ちなみに、けっこうどうでもいいことだけれど、このツールのコードはこちら。
<script type="text/javascript">
<!--
function getGMTDate(s) {
  var d = new Date(s);
  var h = d.getUTCHours();
  var a;
  if (h > 11) {
    a = "PM";
    h -= 12;    
  } else {
    a = "AM";
  }
  if (h == 0) {
    h = 12;
  }
  return getDecimalNumber(d.getUTCMonth() + 1) + "/" + getDecimalNumber(d.getUTCDate()) + "/" + d.getUTCFullYear() + " " + getDecimalNumber(h) + ":" + getDecimalNumber(d.getUTCMinutes()) + ":" + getDecimalNumber(d.getUTCSeconds()) + " " + a;
}
function getDecimalNumber(n) {
  if (n >= 0 && n < 10) {
    return "0" + n;
  } else {
    return "" + n;
  }
}
function changeDate() {
  var raw = document.getElementById("datechangerin").value;
  var rslt = raw.replace(/^DATE: (.*)$/gm, function(a, b) {return "DATE: " + getGMTDate(b);});
  document.getElementById("datechangerout").value = rslt;
}
function selectResult() {
  document.getElementById('datechangerout').select();
}
//-->
</script>
<form action="" onsubmit="changeDate();return false;">
  <textarea id="datechangerin" name="" rows="10" cols="30"></textarea>
  <input type="submit" value="変換" />
  <textarea id="datechangerout" name="" rows="10" cols="30" readonly="readonly"></textarea>
  <input type="button" onclick="selectResult();" value="全選択" />
</form>
何かの参考になれば幸い。
スポンサードリンク:

お願い:
「このエントリ役に立った!」と思ったら、ぜひ フィード 登録をお願いします。 

88 comments:

  1. 日付が反映されず困っていたところ本当に助かりました!

    ReplyDelete
  2. 無事移転ができました。ありがとうございます。

    ReplyDelete
  3. こちらんp記事を参考に、すごく簡単に引越しができました!ありがとうございました。

    ReplyDelete
  4. もし手作業だったら気が遠くなるような量の日付が、おかげさまで一発変換できました!
    助かりました、ありがとうございます!

    ReplyDelete
  5. こちらの記事のおかげで、引っ越し作業が簡単にすみました。本当にありがとうございました!

    ReplyDelete
  6. 過去日付が反映されずに困っていたので、助かりました

    あと変換後、変換のボタンの隣にクリアがあるともっといいと思います
    可能でしょうか?

    ReplyDelete
  7. こちらのツールのお陰で、ブログの引越が大分ラクにできました。
    ありがとうございました。

    ReplyDelete
  8. 大変助かりました。ありがとうございました。

    ReplyDelete
  9. Allassignmenthelp is the favorite choice of students all over the world for getting online assignment help from experts. Some of the possible causes they choose Australian assignment help service from us is on-time delivery and 24*7 hours availability. Also, they prefer us as the student assignment online website to get reputable assignment help, because they found the best assignment writing experts team which can accomplish their need of Melbourne assignment help like services.

    ReplyDelete
  10. Chinese Translation Services Singapore have made a squad of expert linguists, local language Translators, quality assurance managers, proofreaders, & editors competent of providing better translation services in different languages

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Students come to us to do my essay online in Australia. If we talk about the reflective essay, it is usually required in a portfolio for admission in higher education. Its introduction gives a general overview of the goals pursued by the student and to what extent the goals have been delivered.We at EssayAssignmentHelp.com.au strive to deliver economical college essay writing while not compromising on the quality of essays and assignments. If you want to check our authenticity, you can check a few essay writing service reviews where many of our satisfied reviewers have described our services as satisfactory. Know more about essay help online now.

    ReplyDelete
  13. At MyAssignmenthelp.co.uk, we have some of the choicest and native writers in the study help team who are well-versed with the norms of prestigious universities like Cambridge, Oxford, King’s College, and University of Edinburgh etc. We do not charge more. If you have been looking for an online custom writing service agency that takes care of your assignment needs but will not cost you more, we are the only place in the UK to visit for it.

    ReplyDelete
  14. Find instant solutions for thousands of college homework questions like: a calorie is defined as exactly 4.184 j. therefore 1.000 cal is exactly only on ScholarOn, the best academic assistance available online.

    ReplyDelete
  15. If you are looking for test banks online, the best place for Testbank Downloads would be TestBanksOnline. Do not wait to buy Test Bank For Global Marketing 10th Edition online anymore. Get Test Banks Download and improve your grades.

    ReplyDelete
  16. The aspiration of every student is to acheive top grades in college. This acheivement stands beyond a plethora of challeneges, of which exams are the biggest. While most of the students spend hours of time and tons of elbow grease to cram down entire textbooks, smart students use test banks online to breeze through their exams. Find awesome learning aids including Lehninger Principles Of Biochemistry Seventh Edition Test Bank today and ace your class.

    ReplyDelete
  17. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing.
    solve my math homework -
    cpm homework help -
    Business Report Writing Service -
    Pestle Analysis Writing Help -
    Book Review Writing Help -
    proofreading writing services -
    online speech writer

    ReplyDelete
  18. I went to this website, and I believe that you have a plenty of excellent information, I have saved your site to my bookmarks. mastering microbiology

    ReplyDelete
  19. Quality speech and presentation writing, a professional approach is needed. The person working on a presentation should be able to use all presentation tools in order to create a real masterpiece that would affect the audience
    https://super-essays-service.com/speech-and-presentation-writing-at-cheap-price-rates

    ReplyDelete
  20. Excellent reminder on the importance of submitting premium quality assignments to your professors and mentors. This post is really helpful for the students seeking professional help with their academic assignments in Australia. Sometimes the deadline is only two hours away and they need urgent writing assistance to get their hands on a flawless homework solution and this is where the Homework Help service by the LiveWebTutors platform comes into the picture. Try their writing facilities and experience the advantages associated with swift turnarounds.

    ReplyDelete
  21. Regardless of how extraordinary occupation we do on the off chance that we can't finish and convey it on schedule, that is futile for the customer and this is the motivation behind why we generally keep speedy consummation rule for the entirety of the orders that get on this website. Since we have an enormous group of writers, it gets simpler for us to deal with the entirety of the orders according to need premise. visit - assignment provider , assignment help melbourne

    ReplyDelete
  22. amazing website, this is really some good quality content. loved the way you explained through words keep writing the best articleNEWS

    ReplyDelete
  23. The article and the material u used are so useful for my writings. I write a lot but i am good in writing plagiarism facts

    ReplyDelete
  24. Thanks a lot for this post. I don't know your language but with the help of traslator Igot the main idea. As well, I'm a regular user of speech writing service https://essaysprofessor.com/speech-writing-service.html Using the help of this service it's my best decision.

    ReplyDelete
  25. It’s nearly impossible to find well-informed people in this particular topic,
    but you sound like you know what you’re talking about!
    경마
    온라인경마

    ReplyDelete
  26. This post is invaluable 대딸방. How can I find out more?

    ReplyDelete
  27. It’s nearly impossible to find well-informed people on this topic, however, you sound like you know what you’re talking about! Thanks 마사지

    ReplyDelete
  28. Assignment help online south africa for students living in South Africa - at getassignmenthelponline.com with world class experts guiding you and solving upcming doubt 24/7 and handling quality content, working on your writing needs!

    ReplyDelete
  29. That's a great article! The neatly organized content is good to see. Can I quote a blog and write it on my blog? My blog has a variety of communities including these articles. Would you like to visit me later? 토토사이트추천

    ReplyDelete
  30. I’m so happy to see such a good article after a long time, so I’d appreciate it .Thanks for sharing such a Great Information. 바카라사이트인포

    ReplyDelete
  31. Amazing softwear share is great sharing for informative post. Thanks for sharing. 룰렛

    ReplyDelete
  32. I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information 스포츠토토

    ReplyDelete
  33. Recently, I have started to read a lot of unique articles on different sites, and I am enjoying that a lot. Although, I must tell you that I still like the articles here a lot. They are also unique in their own way. 메이저놀이터


    ReplyDelete
  34. Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject 먹튀검증 It touched me a lot. I would love to hear your opinion on my site. Please come to the site I run once and leave a comment. Thank you.


    ReplyDelete
  35. Your post is very interesting to me. Reading was so much fun. I think the reason reading is fun is because it is a post related to that I am interested in. Articles related to 온카지노 you are the best. I would like you to write a similar post about !

    ReplyDelete
  36. I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that’s at the other blogs. Appreciate your sharing this greatest doc. 메이저토토

    ReplyDelete

  37. Canon.com/ijsetup/mg2500
    is the Canon support link to get you the latest printer drivers and software to set up your PIXMA MG2500 or MG2520.

    ReplyDelete
  38. Wonderful work! This is the type of info that are meant to be shared across the web. Shame on the seek engines for no longer positioning this submit upper! Come on over and seek advice from my web site . Thanks =)


    스포츠토토티비
    스포츠중계
    먹튀검증

    ReplyDelete
  39. Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.



    스포츠토토
    토토사이트
    먹튀검증

    ReplyDelete
  40. Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks. หวยลาว

    ReplyDelete
  41. As I am looking at your writing, 파워볼사이트 I regret being unable to do outdoor activities due to Corona 19, and I miss my old daily life. If you also miss the daily life of those days, would you please visit my site once? My site is a site where I post about photos and daily life when I was free.

    ReplyDelete
  42. If disneyplus.com/begin is Not Working on Samsung TV, try clearing the cache in the app, reset the smart hub, make sure that the TV model you have supports the app. Reset the Internet in your home, uninstall the application and reinstall or close it.

    ReplyDelete
  43. Yes! You can watch Foxnews.com/connect Channel without a cable or satellite TV subscription. You can watch it live, just as if you were a cable subscriber. All you need is a streaming device like a Roku and a streaming service that carries The Fox News Channel Fox News Channel on Roku comes with most of the News content from the cable version of it.

    ReplyDelete
  44. I'm so happy to finally find a post with what I want. 안전놀이터순위 You have inspired me a lot. If you are satisfied, please visit my website and leave your feedback.

    ReplyDelete
  45. I think a lot of articles related to are disappearing someday. That's why it's very hard to find, but I'm very fortunate to read your writing. When you come to my site, I have collected articles related to 크레이지슬롯 .

    ReplyDelete
  46. I no uncertainty esteeming each and every bit of it. It is an amazing site and superior to anything normal give. I need to grateful. Marvelous work! Every one of you complete an unfathomable blog, and have some extraordinary substance. Keep doing stunning 메이저사이트순위

    ReplyDelete
  47. https://comprarepatentediguide.com/comprare-la-patente/
    https://comprarepatentediguide.com/dove-e-piu-facile-prendere-la-patente/
    https://comprarepatentediguide.com/patente-di-guida-legittima/
    https://comprarepatentediguide.com/patente-b/
    https://comprarepatentediguide.com/comprare-patente-b/
    https://comprarepatentediguide.com/comprare-patente-b-napoli/
    https://comprarepatentediguide.com/patente-a/
    https://comprarepatentediguide.com/patente-internazionale/
    https://comprarepatentediguide.com/

    ReplyDelete

  48. In India, this Reality Show (Bigg Boss) was started in 16 years ago in 2006. And because of its new concept mostly people
    liked this show and this TV show has gained an instant Fan Following among all the age groups.

    Bigg Boss 16 Live

    ReplyDelete
  49. rijbewijs kopen diensten
    rijbewijs kopen
    rijbewijs kopen zonder examens. we bieden een legaal en kwalitatief rijbewijs aan mensen die het nodig hebben in belgië en nederland. bezoek onze website voor meer informatie over het proces.

    ReplyDelete

  50. Looking Bigg Boss live Watch Full Episode
    biggboss16app All Latest Drama cool in HD This is a official Website.
    biggboss16app

    ReplyDelete
  51. Thanks for the excellent information you shared I appreciate your efforts and all the best. Thank you for taking the time and sharing this content. It was indeed beneficial.

    ReplyDelete
  52. The article posted was exceptionally educational and helpful. You individuals are working really hard. Continue onward. If it's not too much trouble, visit site right here 

    ReplyDelete
  53. greetings! This is my first visit to your weblo 토토사이트

    ReplyDelete
  54. first rate website online. Numerous supportive records 메이저놀이터

    ReplyDelete
  55. https://falsodinero.com/
    https://falsodinero.com/ssd-quimico-falso-dinero-dinero-falso/
    https://falsodinero.com/pago-y-envio-falso-dinero-euro-peso-dolares/
    https://falsodinero.com/shop-2/
    https://falsodinero.com/billetes-comerciales-falso-dinero/

    ReplyDelete
  56. Very nice website as well as nice article, i must say. thank you
    O'Fallon City appliance repairs

    ReplyDelete
  57. Thanks for your informative content and keep sharing like this....Leyes de divorcio sin oposición de Virginia

    ReplyDelete

Zenback - Everyone's Related Posts