mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 17:10:05 +02:00
Update Nyquist.cpp
Remove earlier ifdef'd version of time/date property
This commit is contained in:
parent
35cbd1c017
commit
dbed4affe8
@ -51,10 +51,6 @@ effects from this one class.
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/datetime.h>
|
||||
|
||||
#if defined EXPERIMENTAL_NYQUIST_TIME_PROPERTY
|
||||
#include <wx/datetime.h>
|
||||
#endif
|
||||
|
||||
#include "../../AudacityApp.h"
|
||||
#include "../../FileNames.h"
|
||||
#include "../../Internat.h"
|
||||
@ -515,31 +511,6 @@ bool EffectNyquist::Process()
|
||||
}
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-DIR* (list %s) 'PLUGIN)\n"), list.RemoveLast().c_str());
|
||||
|
||||
#if defined EXPERIMENTAL_NYQUIST_TIME_PROPERTY
|
||||
// Date and time:
|
||||
wxDateTime now = wxDateTime::Now();
|
||||
int year = now.GetYear();
|
||||
int doy = now.GetDayOfYear();
|
||||
int dom = now.GetDay();
|
||||
// enumerated constants
|
||||
wxDateTime::Month month = now.GetMonth();
|
||||
wxDateTime::WeekDay day = now.GetWeekDay();
|
||||
|
||||
// Date/time as a list: year, day of year, hour, minute, seconds
|
||||
mProps += wxString::Format(wxT("(setf *SYSTEM-TIME* (list %d %d %d %d %d))\n"),
|
||||
year, doy, now.GetHour(), now.GetMinute(), now.GetSecond());
|
||||
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'DATE)\n"), now.FormatDate().c_str());
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'TIME)\n"), now.FormatTime().c_str());
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'ISO-DATE)\n"), now.FormatISODate().c_str());
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'ISO-TIME)\n"), now.FormatISOTime().c_str());
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'YEAR)\n"), year);
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'DAY)\n"), dom); // day of month
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'MONTH)\n"), month);
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'MONTH-NAME)\n"), now.GetMonthName(month).c_str());
|
||||
mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'DAY-NAME)\n"), now.GetWeekDayName(day).c_str());
|
||||
#endif
|
||||
|
||||
|
||||
// Date and time:
|
||||
wxDateTime now = wxDateTime::Now();
|
||||
|
Loading…
x
Reference in New Issue
Block a user