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

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

48 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. You had me engaged by reading and you know what? I want to read more about that. That's what's used as an amusing post. At My Assignment Help Au, We Offer Pocket-Friendly Services And Write Tailored Assignments. Students Trust Our Assignment Help in Australia. To Get Authentic Assignments Within Deadlines, Hire Us Today!

    ReplyDelete
  13. 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
  14. 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
  15. We help you to stay at the top of the class with assignment writing help. The reason we have been the go to place for dissertation help is our pool of finest writing experts for all academic assignments. Our assignment assistance has great writing skills and runs a comprehensive assignment check to provide you with a custom online assignment. Our writers are best academic experts.
    Assignment writing help
    Dissertation help
    Assignment assistance

    ReplyDelete
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. Thank you for your outstanding article. You will always find clients coming back to us which is a result of our excellent services. Our goal is to offer unique and specialized services to our clients and in return create a long-lasting working relationship. We provide the Best Ats One Hamlet and 3 BHK, 4 BHK Flats, Apartments, Penthouse, Corporate Properties, Commercial Properties in Noida, Greater Noida West, Delhi NCR with Great Discount and Deals. Learn more about Investmango visit our website and call now:- 8076042671

    ReplyDelete
  22. 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
  23. My Assignment Help online is the most recognized and preferred one stop solution for students to get professional my assignment help in any subject in Australia. Contact us now to connect with our experienced writers and score outstanding grades in your concerned subject.

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

    ReplyDelete
  27. Check out our online assignment expert services at Assignment Studio at low prices.

    ReplyDelete
  28. Global Translation Help is the best option for you if you're looking for a Translation Agency New York. As a leading translation business, we provide accurate translations of any type of document into more than 200 languages.
    Our native translators provide document translations across all cities of New York State like Amsterdam, Cortland, Dunkirk, Geneva, Seneca, Glen Cove, Niagara Falls, North Tonawanda, Rensselaer, Rochester, Rome, Rye, and all others.

    ReplyDelete
  29. 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
  30. 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
  31. Often the Are generally Weight reduction plan is unquestionably an low-priced and flexible weight-reduction plan product modeled on individuals seeking out shed some pounds combined with at some point maintain a far healthier your life. la weight loss real estate bargains

    ReplyDelete
  32. A dissertation assignment help is a long academic essay written after gaining in-depth knowledge of a subject using formal research. Thus Dissertation as a form of academic writing differ from other type of academic assessments and is a real test of capabilities of a student. In this form of academic assessment, leaner is expected to take full responsibility of his own learning starting from choosing the topic, selecting the method of study and concluding the outcomes in the end.

    ReplyDelete
  33. Finally a simple to understand information, appreciated!

    Also visit my blog: 토토사이트

    ReplyDelete
  34. 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
  35. First of all, thank you for your post. Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again 바카라

    ReplyDelete
  36. whoah this weblog is excellent i really like reading your articles. 토토사이트

    ReplyDelete
  37. Hello there, simply turned into aware of your weblog thru Google, and found that it is really informative. I am going to be careful for Brussels. I will appreciate for those who continue this in future 야한소설 . Many people will likely be benefited from your writing. Cheers!

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

    ReplyDelete
  39. 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
  40. Great article 건전마사지 . Keep writing such kind of information on your page. I'm really impressed by your blog.

    ReplyDelete
  41. It is very well written, and your points are well-expressed. I request you warmly, please, don’t ever stop writing.토토

    ReplyDelete
  42. Great blog article. Really looking forward to read more.바카라사이트

    ReplyDelete

Zenback - Everyone's Related Posts