WinCE strftime day of year WINCE_NSPRPUB_RELEASE_4_2_BETA1
authorblythe%netscape.com
Mon, 11 Feb 2002 23:54:05 +0000
branchWINCE_NSPRPUB_RELEASE_4_2_BETA1
changeset 2248 b7534a503b4674f73eb3507a89eb4a987293d3d1
parent 2247 002aa6ae8bbf032e04e7f2fcf37fa09b996376ac
child 2249 a63c7241a07e937b5e4f807ac1b3b5b5da90f680
push idunknown
push userunknown
push dateunknown
WinCE strftime day of year
pr/src/md/windows/w32time.c
--- a/pr/src/md/windows/w32time.c
+++ b/pr/src/md/windows/w32time.c
@@ -456,17 +456,24 @@ size_t Winstrftime(char *strDest, size_t
                             }
                             else
                             {
                                 errorOut = PR_TRUE;
                             }
                         }
                         break;
                     case 'j':
-                        PR_ASSERT(0);
+                        {
+                            /*
+                             * Day of year.
+                             */
+                            traverse++;
+                            wsprintfW(buf, (PR_TRUE == poundOutput) ? _T("d") : _T(".3d"), convertTM.tm_yday);
+                            helper_Winstrftime(buf, &outDst, &outMax, &errorOut, &hadEnoughSpace, *traverse);
+                        }
                         break;
                     case 'm':
                         PR_ASSERT(0);
                         break;
                     case 'M':
                         PR_ASSERT(0);
                         break;
                     case 'p':