Name Space Value
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
3 posts
• Page 1 of 1
Name Space Value
Hello,
I wish to get back the date of creation and last access of a file. I use for it the DLL mscorlib:
⎕USING←',mscorlib.dll'
DCrea←System.IO.File.GetCreationTime(AdrFic)
DLastAcc←System.IO.File.GetLastAccessTime(AdrFic)
but DCrea and DLastAcc are Name Space from whom I do not know how to extract the value.
There is a solution?. Thank you.
Regards
Bertrand Delassus
I wish to get back the date of creation and last access of a file. I use for it the DLL mscorlib:
⎕USING←',mscorlib.dll'
DCrea←System.IO.File.GetCreationTime(AdrFic)
DLastAcc←System.IO.File.GetLastAccessTime(AdrFic)
but DCrea and DLastAcc are Name Space from whom I do not know how to extract the value.
There is a solution?. Thank you.
Regards
Bertrand Delassus
- Tranber44
- Posts: 34
- Joined: Mon Jan 11, 2010 4:46 pm
Re: Name Space Value
Hello Bertrand, look at the namespace netDIO located at http://aplwiki.com/netDIO there is a method 'GetCreationTime' that should help you. After that you can do:
to get the equivalent ⎕TS
DCrea.(Year Month Day Hour Minute Second Millisecond)
to get the equivalent ⎕TS
-
PGilbert - Posts: 436
- Joined: Sun Dec 13, 2009 8:46 pm
- Location: Montréal, Québec, Canada
Re: Name Space Value
Thank you for this answer which gives me complete satisfaction.
Regards
Bertrand Delassus
Regards
Bertrand Delassus
- Tranber44
- Posts: 34
- Joined: Mon Jan 11, 2010 4:46 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group