Skip to content

Add last_modified function#3003

Merged
lerno merged 9 commits intoc3lang:masterfrom
Flanderzz:file_get_modified
Mar 8, 2026
Merged

Add last_modified function#3003
lerno merged 9 commits intoc3lang:masterfrom
Flanderzz:file_get_modified

Conversation

@Flanderzz
Copy link
Contributor

@Flanderzz Flanderzz commented Mar 6, 2026

Closes #2769

  • Adds a file::modified_time() function

@Flanderzz Flanderzz changed the title Add get_modified_time function Add last_modified function Mar 6, 2026
@Flanderzz
Copy link
Contributor Author

Flanderzz commented Mar 6, 2026

to me, Time_t? makes more sense for a return type than the proposed ulong?, but i can change if needed.

@Flanderzz Flanderzz force-pushed the file_get_modified branch 3 times, most recently from 73b7b99 to bea2df9 Compare March 7, 2026 10:29
@lerno
Copy link
Collaborator

lerno commented Mar 7, 2026

I expected a Time from time.c3, not the libc Time_t. Could you make the change?

@Flanderzz Flanderzz force-pushed the file_get_modified branch from 8b2d62f to e7dbb51 Compare March 7, 2026 18:35
@Flanderzz
Copy link
Contributor Author

I expected a Time from time.c3, not the libc Time_t. Could you make the change?

fixed to return a Time not a Time_t

@Flanderzz Flanderzz requested a review from lerno March 7, 2026 20:11
lerno added 2 commits March 8, 2026 03:38
- Make DateTime and DateTimeTz `Printable`.
- Add `to_format` functionality for DateTime.
@lerno lerno merged commit 5d4f7ff into c3lang:master Mar 8, 2026
@lerno
Copy link
Collaborator

lerno commented Mar 8, 2026

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Std::io::file missing functions

2 participants