diff options
| author | Paul Eggert | 1997-11-24 19:50:22 +0000 |
|---|---|---|
| committer | Paul Eggert | 1997-11-24 19:50:22 +0000 |
| commit | b771d0da6d954dfa72d3712418c792d5261a1098 (patch) | |
| tree | 6d60818a7c437729d87859b2028b227f4757edf8 /src | |
| parent | 9284a0764b71fe45aa412946bdd1d113950a18c4 (diff) | |
| download | emacs-b771d0da6d954dfa72d3712418c792d5261a1098.tar.gz emacs-b771d0da6d954dfa72d3712418c792d5261a1098.zip | |
(emacs_strftime): New decl.
(Fformat_time_string): Doc fix: %b, %h, %B, %a, %A, and %p depend on locale;
don't use actual chars to describe %n and %t.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index 59856d3142a..b3b797e636f 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -49,6 +49,7 @@ extern Lisp_Object make_time (); | |||
| 49 | extern void insert_from_buffer (); | 49 | extern void insert_from_buffer (); |
| 50 | static int tm_diff (); | 50 | static int tm_diff (); |
| 51 | static void update_buffer_properties (); | 51 | static void update_buffer_properties (); |
| 52 | size_t emacs_strftime (); | ||
| 52 | void set_time_zone_rule (); | 53 | void set_time_zone_rule (); |
| 53 | 54 | ||
| 54 | Lisp_Object Vbuffer_access_fontify_functions; | 55 | Lisp_Object Vbuffer_access_fontify_functions; |
| @@ -835,17 +836,18 @@ by text that describes the specified date and time in TIME:\n\ | |||
| 835 | \n\ | 836 | \n\ |
| 836 | %Y is the year, %y within the century, %C the century.\n\ | 837 | %Y is the year, %y within the century, %C the century.\n\ |
| 837 | %G is the year corresponding to the ISO week, %g within the century.\n\ | 838 | %G is the year corresponding to the ISO week, %g within the century.\n\ |
| 838 | %m is the numeric month, %b and %h the abbreviated name, %B the full name.\n\ | 839 | %m is the numeric month.\n\ |
| 840 | %b and %h are the locale's abbreviated month name, %B the full name.\n\ | ||
| 839 | %d is the day of the month, zero-padded, %e is blank-padded.\n\ | 841 | %d is the day of the month, zero-padded, %e is blank-padded.\n\ |
| 840 | %u is the numeric day of week from 1 (Monday) to 7, %w from 0 (Sunday) to 6.\n\ | 842 | %u is the numeric day of week from 1 (Monday) to 7, %w from 0 (Sunday) to 6.\n\ |
| 841 | %a is the abbreviated name of the day of week, %A the full name.\n\ | 843 | %a is the locale's abbreviated name of the day of week, %A the full name.\n\ |
| 842 | %U is the week number starting on Sunday, %W starting on Monday,\n\ | 844 | %U is the week number starting on Sunday, %W starting on Monday,\n\ |
| 843 | %V according to ISO 8601.\n\ | 845 | %V according to ISO 8601.\n\ |
| 844 | %j is the day of the year.\n\ | 846 | %j is the day of the year.\n\ |
| 845 | \n\ | 847 | \n\ |
| 846 | %H is the hour on a 24-hour clock, %I is on a 12-hour clock, %k is like %H\n\ | 848 | %H is the hour on a 24-hour clock, %I is on a 12-hour clock, %k is like %H\n\ |
| 847 | only blank-padded, %l is like %I blank-padded.\n\ | 849 | only blank-padded, %l is like %I blank-padded.\n\ |
| 848 | %p is AM or PM.\n\ | 850 | %p is the locale's equivalent of either AM or PM.\n\ |
| 849 | %M is the minute.\n\ | 851 | %M is the minute.\n\ |
| 850 | %S is the second.\n\ | 852 | %S is the second.\n\ |
| 851 | %Z is the time zone name, %z is the numeric form.\n\ | 853 | %Z is the time zone name, %z is the numeric form.\n\ |
| @@ -858,7 +860,7 @@ by text that describes the specified date and time in TIME:\n\ | |||
| 858 | %R is like \"%H:%M\", %T is like \"%H:%M:%S\", %r is like \"%I:%M:%S %p\".\n\ | 860 | %R is like \"%H:%M\", %T is like \"%H:%M:%S\", %r is like \"%I:%M:%S %p\".\n\ |
| 859 | %X is the locale's \"preferred\" time format.\n\ | 861 | %X is the locale's \"preferred\" time format.\n\ |
| 860 | \n\ | 862 | \n\ |
| 861 | Finally, %n is like \n, %t is like \t, %% is a literal %.\n\ | 863 | Finally, %n is a newline, %t is a tab, %% is a literal %.\n\ |
| 862 | \n\ | 864 | \n\ |
| 863 | Certain flags and modifiers are available with some format controls.\n\ | 865 | Certain flags and modifiers are available with some format controls.\n\ |
| 864 | The flags are `_' and `-'. For certain characters X, %_X is like %X,\n\ | 866 | The flags are `_' and `-'. For certain characters X, %_X is like %X,\n\ |