[gbrainy] Comment on tt date formatting
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Comment on tt date formatting
- Date: Tue, 2 Oct 2012 20:47:17 +0000 (UTC)
commit 42421d92e49f06af66863a4a05f2d1db582e7022
Author: Jordi Mas <jmas softcatala org>
Date: Tue Oct 2 22:49:26 2012 +0200
Comment on tt date formatting
src/Games/Logic/PuzzleTimeNow.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleTimeNow.cs b/src/Games/Logic/PuzzleTimeNow.cs
index 00c9da6..f253c26 100644
--- a/src/Games/Logic/PuzzleTimeNow.cs
+++ b/src/Games/Logic/PuzzleTimeNow.cs
@@ -81,7 +81,9 @@ namespace gbrainy.Games.Logic
// Explanation of the date and time format specifications can be found here:
// http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx
// For 12-hour clock format use {0:%h} and for 24-hour clock format use {0:%H}. The date formats {0:h} and {0:H} are invalid.
+ // 'tt' is the A.M./P.M. designator
Answer.Correct = String.Format (Translations.GetString ("{0:h tt}"), ans);
+ Console.WriteLine ("{0}", Answer.Correct);
Answer.CheckAttributes = GameAnswerCheckAttributes.IgnoreCase | GameAnswerCheckAttributes.IgnoreSpaces;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]