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>
何かの参考になれば幸い。
スポンサードリンク:

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

76 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. 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
  21. amazing website, this is really some good quality content. loved the way you explained through words keep writing the best articleNEWS

    ReplyDelete
  22. 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
  23. 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
  24. 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
  25. This post is invaluable 대딸방. How can I find out more?

    ReplyDelete
  26. 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
  27. 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
  28. 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
  29. Amazing softwear share is great sharing for informative post. Thanks for sharing. 룰렛

    ReplyDelete
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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

  37. 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
  38. 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

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

    ReplyDelete
  40. 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
  41. 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
  42. greetings! This is my first visit to your weblo 토토사이트

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

    ReplyDelete
  44. 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
  45. Very nice website as well as nice article, i must say. thank you
    O'Fallon City appliance repairs

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

    ReplyDelete

  47. You're very welcome! I'm glad you found the article enjoyable and informative. Engaging with readers through comments is a great way to foster discussion, share insights, and build a sense of community around topics of interest. If you have any further questions or if there are any other topics you'd like to explore, feel free to let me know. I'm here to help and provide information on a wide range of subjects.
    https://www.rockymountainoils.com/blogs/essential-oil-basics/best-essential-oils-for-sleep-and-anxiety
    Certainly! Essential oils can be a helpful addition to relaxation routines and sleep hygiene practices. Here are 11 of the best essential oils known for their calming effects and potential to promote better sleep and reduce anxiety:

    ReplyDelete

  48. Thank you so much for your kind words! I'm delighted to hear that you found the article interesting and compelling. It's always rewarding to know that the information provided is valuable and appreciated by readers like you. If you have any further questions or topics you'd like to learn more about, feel free to let me know. I'm here to help!
    After your postcards have been delivered, follow up with recipients as needed. This could include sending additional communications or tracking responses to your campaign.mailing marketing services

    ReplyDelete

Zenback - Everyone's Related Posts