Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Format NFormat and so on.
Re: Format NFormat and so on. [message #3177 is a reply to message #3152] Wed, 10 May 2006 04:09 Go to previous message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member
Cut out the extra junk I had from the example, and used yours and it works fine.

Left with:

// "Wednesday 10/05/2006 10:23:43"
SetDateFormat("%4:Day %3:02d/%2:02d/%1:4d");

Which will do.. should really give the user the option to chose this, but it would be too complicated to expect a user to be able to enter a magic string like that, when even I don't know fully what the deal is Smile

The double problem is probably more something to do with that I should cast it to date/time to print it.

double size, cps;

return Format("%5.2n MB Remaining at %5.2n KB/s should take %` seconds",
size/1024.0, cps, size / 1024.0 / cps);


54793.43359 MB Remaining at 1715.27 KB/s should take 31 seconds


[Updated on: Wed, 10 May 2006 04:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux (amd64 gentoo) build issues
Next Topic: TrayIcon for linux
Goto Forum:
  


Current Time: Wed Apr 30 05:17:11 CEST 2025

Total time taken to generate the page: 0.00821 seconds