[INTERPRETER]
* NEW: gb.Millisecond is a new date operation constant to deal with milliseconds. * NEW: Support for gb.Millisecond in DateDiff() and DateAdd(). git-svn-id: svn://localhost/gambas/trunk@3420 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
938209d793
commit
4a5908c37e
3 changed files with 552 additions and 541 deletions
|
@ -214,6 +214,7 @@ GB_DESC NATIVE_Gambas[] =
|
|||
GB_CONSTANT("Friday", "i", 5),
|
||||
GB_CONSTANT("Saturday", "i", 6),
|
||||
|
||||
GB_CONSTANT("Millisecond", "i", DP_MILLISECOND),
|
||||
GB_CONSTANT("Second", "i", DP_SECOND),
|
||||
GB_CONSTANT("Minute", "i", DP_MINUTE),
|
||||
GB_CONSTANT("Hour", "i", DP_HOUR),
|
||||
|
|
1073
main/gbx/gbx_date.c
1073
main/gbx/gbx_date.c
File diff suppressed because it is too large
Load diff
|
@ -56,15 +56,16 @@ typedef
|
|||
#endif
|
||||
|
||||
enum {
|
||||
DP_SECOND = 1,
|
||||
DP_MINUTE = 2,
|
||||
DP_HOUR = 3,
|
||||
DP_DAY = 4,
|
||||
DP_WEEK = 5,
|
||||
DP_WEEKDAY = 6,
|
||||
DP_MONTH = 7,
|
||||
DP_QUARTER = 8,
|
||||
DP_YEAR = 9,
|
||||
DP_MILLISECOND = 1,
|
||||
DP_SECOND = 2,
|
||||
DP_MINUTE = 3,
|
||||
DP_HOUR = 4,
|
||||
DP_DAY = 5,
|
||||
DP_WEEK = 6,
|
||||
DP_WEEKDAY = 7,
|
||||
DP_MONTH = 8,
|
||||
DP_QUARTER = 9,
|
||||
DP_YEAR = 10,
|
||||
};
|
||||
|
||||
#ifndef GBX_INFO
|
||||
|
|
Loading…
Reference in a new issue