|
|
#81 |
|
Moderator
|
C_FSIZE
E r g e b n i s / R e s u l t
The C_FSIZE function returns the size of a file previously opened with the C_OPEN function B e s c h r e i b u n g / D e s c r i p t i o n The C_FSIZE function gets the size of the file associated with the file descriptor fd. S y n t a x Code:
res = call ('C_FSIZE' , fd)fd - The file descriptor you obtained from C_OPEN R e t u r n s C_FSIZE returns the number of bytes of the open file. B e i s p i e l / E x a m p l e Code:
attach 'FILE0'
attach 'FILE1'
fd = CALL ("C_OPEN", "FILE.TXT", "r")
PUT CALL ("C_FSIZE", fd) ! Returns the size of FILE.TXT
b = CALL("C_CLOSE", fd)
detach 'FILE0'
detach 'FILE1' |
|
|
|
|
|
#82 |
|
Moderator
|
DATCONV5
E r g e b n i s / R e s u l t
Returns a human readable date in the form [day] [month name] [year]. B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns a human readable form of the date. If the function was passed a date of the format '11.10.2012' it would return '11th October 2012' S y n t a x Code:
value = call ('DATCONV5' , datefld)datefld - any Open Access date R e t u r n s A string containing the human readable form of the given date. B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONV5' , sysdate) ! prints today's date
detach 'DATE' |
|
|
|
|
|
#83 |
|
Moderator
|
DATCONV6
E r g e b n i s / R e s u l t
Returns the day of week of a given date. B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns the day of week as a number, starting at 0 for Sunday, so 1 is Monday, 2 is tuesday, ... If the function was passed a date of the format '11.10.2012' it would return 4, as this is a Thursday. S y n t a x Code:
value = call ('DATCONV6' , datefld)datefld - any Open Access date R e t u r n s An integer containing the weekday number. B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONV6' , sysdate) ! prints today's weekday number
detach 'DATE' |
|
|
|
|
|
#84 |
|
Moderator
|
DATCONVA
E r g e b n i s / R e s u l t
Returns an integer in the format [yy][mm] B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns an integer representing the 2-digit year and 2digit-month of the current date. If the function was passed a date of the format '11.10.2012' it would return 1210, as the year is 2012 and the month is 10. S y n t a x Code:
value = call ('DATCONVA' , datefld)datefld - any Open Access date R e t u r n s An integer containing [yy][mm] B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONVA' , sysdate) ! prints today's year and month as integer
detach 'DATE' |
|
|
|
|
|
#85 |
|
Moderator
|
DATCONV9
E r g e b n i s / R e s u l t
Returns an integer specifying the day of the year B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns an integer the specifies the day number of the year specified. If the function was passed a date of the format '11.10.2012' it would return 285, as this day is the 285th day of the year 2012. S y n t a x Code:
value = call ('DATCONV9' , datefld)datefld - any Open Access date R e t u r n s An integer containing the day of the year. B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONV9' , sysdate) ! prints today's day number within the year
detach 'DATE' |
|
|
|
|
|
#86 |
|
Moderator
|
DATCONVB
E r g e b n i s / R e s u l t
Returns the month's first day of the specified date in the format 01.[mm].[yyyy] B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns a string that represents the first day of the month in the format 01.[mm].[yyyy] If the function was passed a date of the format '11.10.2012' it would return '01.10.2012', as this is the first of October 2012. S y n t a x Code:
value = call ('DATCONVB' , datefld)datefld - any Open Access date R e t u r n s A string containing the specified date in the format 01.[mm].[yyyy] B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONVB' , sysdate) ! prints the first of the current month
detach 'DATE' |
|
|
|
|
|
#87 |
|
Moderator
|
DATCONVC
E r g e b n i s / R e s u l t
Returns the month's first day of the next month of the specified date in the format 01.[mm].[yyyy] B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns a string that represents the first day of the coming month in the format 01.[mm].[yyyy] If the function was passed a date of the format '11.10.2012' it would return '01.11.2012', as the first of the next month is the first of November 2012. S y n t a x Code:
value = call ('DATCONVC' , datefld)datefld - any Open Access date R e t u r n s A string containing the first of the month that comes after the specified date in the format 01.[mm].[yyyy] B e i s p i e l / E x a m p l e Code:
attach 'DATE'
put call ('DATCONVC' , sysdate) ! prints the first of the current month
detach 'DATE' |
|
|
|
|
|
#88 |
|
Moderator
|
TAG
E r g e b n i s / R e s u l t
Liefert den Tag eines Monats aus einem Datum Returns the day of the month from a date Same as DATCONV4 function! B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns the day of the month. If the function was passed a date of the format '31/12/96' it would return 31. S y n t a x Code:
value = call ('TAG' , datefld)datefld - any Open Access date R e t u r n s An integer containing the day. B e i s p i e l / E x a m p l e Code:
attach 'TAG'
put call ('TAG' , sysdate) ! prints today's day number
detach 'TAG' |
|
|
|
|
|
#89 |
|
Moderator
|
JAHR
E r g e b n i s / R e s u l t
Liefert das Jahr aus einem Datum Return the year from a date Same as DATCONV3 function B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns the year. If the function was passed a date of the format '31/12/96' it would return 1996. S y n t a x Code:
value = call ('JAHR' , datefld)datefld - any Open Access date R e t u r n s An integer containing the year. B e i s p i e l / E x a m p l e Code:
attach 'JAHR'
put call ('JAHR' , sysdate) ! prints today's year
detach 'JAHR' |
|
|
|
|
|
#90 |
|
Moderator
|
WOCHE
E r g e b n i s / R e s u l t
Returns the week number of the date given. B e s c h r e i b u n g / D e s c r i p t i o n When passed a date, this function returns an integer that represents the number of the week. If the function was passed a date of the format '11.10.2012' it would return 41, as the given date is within the 41st week of the yer 2012. S y n t a x Code:
value = call ('WOCHE' , datefld)datefld - any Open Access date R e t u r n s An integer containing the number of the week. B e i s p i e l / E x a m p l e Code:
attach 'WOCHE'
put call ('WOCHE' , sysdate) ! prints the week number
detach 'WOCHE' |
|
|
|